boleite icon indicating copy to clipboard operation
boleite copied to clipboard

Improve GUI Drawables Cache

Open Groogy opened this issue 7 years ago • 0 comments

So the GUI Drawables cache was retaining objects because we used the object_id to have an index to do the binary search for. However the object_id is literally the pointer as an int of the object meaning the GC will parse it as a pointer and retain the object making the cache not able to clean out the objects.

I fixed this shortly by just having it clear the cache every thousand or so accesses but we should fix this so that we can retain valid drawables for alive gui elements.

Groogy avatar Aug 22 '18 20:08 Groogy