Tasks:Gfx Cache: Difference between revisions
Jump to navigation
Jump to search
added graphic cache task |
(No difference)
|
Revision as of 20:36, 17 January 2008
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
- Allow to configure maximum cache size
- Keep track of cache memory used
- Keep images cached, even if reference count reaches zero
- When cache size exceeded, delete least frequently used images first
- Empty cache to a certain threshold only, so that frequently used images remain cached
- Allow "manual" or maybe periodic purge of cache
References
Current cache implementation: gfx.cc see surface_cache(...) method