Stefan Zermatten
f07f05ca2c
Moved creature variables to their own collection
...
Another big change to the engine, expect bugs
2022-06-29 14:54:25 +02:00
Stefan Zermatten
b2f89eceee
Fixed some bugs with characters not recomputing
...
TODO: remove .variables cache from creature document, it's not viable
2022-06-23 08:39:48 +02:00
Stefan Zermatten
1b3efae81a
Replaced manual recompute calls with dirty flag settings
2022-05-11 15:42:29 +02:00
Stefan Zermatten
7a35c66904
Removed performance logging from loading creatures
2022-05-11 13:33:56 +02:00
Stefan Zermatten
78cd8ffc8d
Creatures are now cached in memory for computation
...
Also removed dependency group calculation because the optimisation isn't
as useful to reduce DB calls if the creature is in memory anyway
2022-05-11 13:30:33 +02:00
Stefan Zermatten
23fa6fe634
Progress on dependency updates
2022-05-09 16:32:15 +02:00
Stefan Zermatten
caf50d1578
Merge branch 'version-2' into version-2-dev
2022-05-09 12:46:09 +02:00
Stefan Zermatten
2e3f0320f3
Added dependency grouping, but commented out for now until it's needed
2022-05-02 23:31:10 +02:00
Stefan Zermatten
ea32c54f57
Fixed massive writes to creature.variables on calc
...
Now only writes changed variables, preventing oplog from being
polluted with massive updates
2022-04-25 13:57:39 +02:00
Stefan Zermatten
52453b46e9
Fixed experience not appearing as a variable after computation
2022-02-23 11:44:59 +02:00
Stefan Zermatten
1a14393031
Parsed calculations are now cached between calculations
...
Parsing is one of the more expensive computations done to characters, so
the parser results are now stored on the DB and only updated if they are
dirty. A hash is used to determine if the calculation has changed since
the last computation
2021-10-03 20:59:04 +02:00
Stefan Zermatten
cb1fd38df3
Optimized some slow parts of the engine.
...
Last low hanging fruit: parsing is slow, cache parsed calculations
2021-09-29 15:54:14 +02:00
Stefan Zermatten
111040e789
Began migrating the rest of the codebase to the new computation engine
2021-09-27 15:39:18 +02:00
Stefan Zermatten
fdea748441
Tore out the old engine, left some wounds
2021-09-27 14:28:32 +02:00