Commit Graph
6 Commits
Author SHA1 Message Date
Willem Jan Palenstijn c3d533a72b SWORD25: Use direct integer index into indexTbl
This matches the behaviour of the Pluto rewrite Eris, and avoids
casting the integer indices to void *.

I verified this code by running this method in parallel with the current
lightuserdata/void* approach and asserting the retrieved objects were
identical when loading a savegame.
2017-01-28 18:47:11 +01:00
Willem Jan Palenstijn 75f1d2e259 SWORD25: Use more appropriate function for growing the stack
The call to lua_growstack in unpersistThread would unconditionally at
least double the size of the stack. This caused memory usage to grow
exponentially (literally) with the number of serialized threads.

Bugs #6977, #6999.
2016-02-02 01:21:28 +01:00
RichieSams 9a4d62e76a SWORD25: Change function names to use persist instead of serialize
Same argument as in 97c35714ce.
To match the rest of the SWORD25 code base
2014-12-30 18:26:59 -06:00
RichieSams 8ee75e1dc5 SWORD25: Add Pluto copyright message to new persistence code
Since the code is based off the Pluto code
2014-12-30 18:22:15 -06:00
RichieSams 08e3f21a8d SWORD25: Rename double serialization file to better represent what it is
AKA functions, rather than a class
2014-12-30 15:40:33 -06:00
RichieSams 97c35714ce SWORD25: Rename lua serialization functions to use 'persist' in order to match the rest of the engine 2014-12-30 15:40:29 -06:00