kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Improve Object Store

djungelorm opened this issue ยท 0 comments

commented

What would you like to be added?

ObjectStore stores kRPC objects that refer to game objects. When doing a quickload (or similar) these game objects are quite often destroyed, but leave dangling kRPC objects in the ObjectStore.

This should be improved. We might want to:

  • use weak references where appropriate
  • occasionally garbage collect the object store (e.g. on save load)

See also #770

Why is this needed?

Object store not being garbage collected can cause increasing memory footprint over time, proportional to the number of quickloads.