I use large spritesheets and crop frames with Python.
However, the sprite always lags on the very first playback, since it hasn't preloaded the cropped frames.
I tried using renpy.predict on every frame, but that did not work.
Once the animation has run the first time, it doesn't lag anymore.
Up until now, my solution has been to run the animation off the screen the first time around.
However, that is lagging text and showing of sprites in game, so I've had to create a Loading screen.
Now, I want to eliminate Loading altogether.
So, is there any way to preload sprites without having to lag the game and play them through?
---
Found a solution.
Code: Select all
renpy.cache_pin('spritesheet.png')