Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Ren'Py Creator
- Posts: 15447
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
zanaikin wrote:Can you select to prevent caching for entire UI widgets / layers ? I couldn't find anything about it in the UI functions docs.
No. The cache can only be controlled on a per-image-manipulator basis. We don't know what an image manipulator will be used for at the time we're loading it.
Also, is there a way to lower the graphics cache limit ?
Yes, look at config.image_cache_size. The default value (8) is pretty good for most games. It'll generally be between 16 and 32 megs of image cache for an 800x600 game. If it gets bigger than this, it probably means you're showing too many images at once. (Ren'Py will cache all images on the screen for the duration they are shown.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom