boleite
boleite copied to clipboard
Improve GUI Drawables Cache
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.