Tasks:Gfx Cache
Jump to navigation
Jump to search
Back to Task List
Overview
The Graphics cache makes sure that images are only loaded once, even when used multiple times in the game.
Dependencies
Requirements
- Count references to keeps track of images in use (done)
- Allow to configure maximum cache size (done)
- Keep track of cache memory used (done)
- Keep images cached, even if reference count reaches zero (done)
- When cache size exceeded, delete least frequently used images first
- Empty cache to a certain threshold only, so that frequently used images remain cached (done)
- Allow "manual" or maybe periodic purge of cache (done)
References
Current cache implementation: gfx.cc see surface_cache(...) method