Ren'Py Renpy games lagging on animation loops

Perished

Member
Dec 9, 2022
114
410
Hello,

I am new to AVNs and Renpy engine. I suspected some games I play have lag in scene animations like chugging and skipping some frames and some play just fine. Is there a way to fix it or is it related to my hardware?

Thanks.
 

desmosome

Conversation Conqueror
Sep 5, 2018
6,497
14,830
If you go into the game files and play the animations in a video player, it runs fine, right?

But when you run it it in renpy and open the task manager, you can see it's capping out your CPU usage, right?

Yea, this happens to me as well. Renpy sucks at playing animations. I've tried forcing it to run on my dedicated graphics card instead of the integrated one. I've tried Shift + G to mess with the renderer and FPS caps. I've tried playng the conpressed version of the games.

Not all renpy games have laggy animations, but for those that do, nothing I did fixed the issue.

Maybe someone can figure out a solution one day.
 

Perished

Member
Dec 9, 2022
114
410
If you go into the game files and play the animations in a video player, it runs fine, right?

But when you run it it in renpy and open the task manager, you can see it's capping out your CPU usage, right?

Yea, this happens to me as well. Renpy sucks at playing animations. I've tried forcing it to run on my dedicated graphics card instead of the integrated one. I've tried Shift + G to mess with the renderer and FPS caps. I've tried playng the conpressed version of the games.

Not all renpy games have laggy animations, but for those that do, nothing I did fixed the issue.

Maybe someone can figure out a solution one day.
First think that comes to mind is GPU, not CPU for me for some reason. I'm a bit newbie so can't find video files to play outside of renpy, where are they generally located under game, lib or renpy folder?
Try running those in a window mode. Adjust it to be a bit smaller than your screen. :whistle::coffee:
Generally play AVNs in windowed mode, doesn't seem to fix the issue.