Ways to monitor image/transformation performance?
Posted: Fri Jan 08, 2016 3:33 pm
Hi All,
I've been noticing that a lot of the animations in my game are kinda jittery, or sometimes just not happening, due to the number of frames being skipped. Initially I thought that this might be because images are being loaded into the cache, but even after giving the game a frankly ridiculous config.image_cache_size (around 500 MB) and a config.predict_statements of 50 I'm still seeing frames being skipped and images taking a while to appear. I'm wondering if I've got too many screens showing at once, or trying to do to many animations at once, maybe.
Are there ways to monitor which screens are currently being shown or how many images are currently stored? I've tried using the image load log with the developer menu, but not config.debug_image_cache. Is there something similar that shows screens currently shown or how much space is being used by Renpy?
Any info on performance tuning Renpy would be a very big help.
Looking at the image load log, I'm seeing that sometimes inventory images are loaded when the inventory is opened. Would it be worthwhile pre-caching images or transforms that I can tell will come up (like objections or interruptions) but it looks like Renpy doesn't pre-load? Looking around the forums, it seems like pre-caching is frowned upon, but could it help in this case?
I've tried using "subpixel True" on the transforms as well, but I'm not sure if that's helping or not.
Thanks in advance!
I've been noticing that a lot of the animations in my game are kinda jittery, or sometimes just not happening, due to the number of frames being skipped. Initially I thought that this might be because images are being loaded into the cache, but even after giving the game a frankly ridiculous config.image_cache_size (around 500 MB) and a config.predict_statements of 50 I'm still seeing frames being skipped and images taking a while to appear. I'm wondering if I've got too many screens showing at once, or trying to do to many animations at once, maybe.
Are there ways to monitor which screens are currently being shown or how many images are currently stored? I've tried using the image load log with the developer menu, but not config.debug_image_cache. Is there something similar that shows screens currently shown or how much space is being used by Renpy?
Any info on performance tuning Renpy would be a very big help.
Looking at the image load log, I'm seeing that sometimes inventory images are loaded when the inventory is opened. Would it be worthwhile pre-caching images or transforms that I can tell will come up (like objections or interruptions) but it looks like Renpy doesn't pre-load? Looking around the forums, it seems like pre-caching is frowned upon, but could it help in this case?
I've tried using "subpixel True" on the transforms as well, but I'm not sure if that's helping or not.
Thanks in advance!