Skip to content

Improve GUI Drawables Cache #3

@Groogy

Description

@Groogy

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions