Renpy 8.0.2 VP9 framerate issues
Forum rules
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.
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.
Renpy 8.0.2 VP9 framerate issues
Renpy version: 8.0.2.22081402
VP9 encoded webm animations are not playing correctly in Renpy. It is not the webm vp9 encoded animations fault as it has been tested with another program and it plays fine. A same animation but encoded with VP8 works correctly. Why does VP9 a more recent and supposed improvement not work correctly with Renpy?
VP9 encoded webm animations are not playing correctly in Renpy. It is not the webm vp9 encoded animations fault as it has been tested with another program and it plays fine. A same animation but encoded with VP8 works correctly. Why does VP9 a more recent and supposed improvement not work correctly with Renpy?
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
Do you have a small game that demonstrates the problem?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: Renpy 8.0.2 VP9 framerate issues
The game is not small. I noticed because I have made 2 versions of the same animation. One was made with VP8 encoding and the other with a VP9 encoding. The VP8 encoded version plays seemingly plays fine unlike the VP9 version which has a very noticeable frame rate lag.
-
ReAnimator
- Regular
- Posts: 64
- Joined: Mon Dec 16, 2013 1:00 pm
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
Maybe you can try to reduce the file size with VP9. It seems that is the only big difference.
- PyTom
- Ren'Py Creator
- Posts: 15893
- 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
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
I mean, I'd like you to produce a game that has only the files in question, to make sure it's not some other portion of the game that's causing the problem. Assuming it's video playback that's doing it,
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
The vp9 file appears to use a far higher quantizizer, resulting in much higher bit rate and thus higher quality footage, but also severely more demanding on system resources.
Try reducing the quality of the file, or the bit rate, or increase the compression, both spacial and temporal, depending on what settings you used when encoding the file.
Try reducing the quality of the file, or the bit rate, or increase the compression, both spacial and temporal, depending on what settings you used when encoding the file.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Re: Renpy 8.0.2 VP9 framerate issues
I have created a short Renpy game build of it with some animations. Hopefully I don't need to create much longer animations because they are taxing on my system. The drop in frame rates for VP9 might be more noticeable in some faster and longer animations. Also apologies for the awkward animations. Most of the animations from the software I use are mostly meant for hentai stuff.
The links are provided with MediaFire as the host to these test game builds.
Windows/Linux:
https://www.mediafire.com/file/9ibhl5pv ... c.zip/file
Mac:
https://www.mediafire.com/file/fjysuy4w ... c.zip/file
The files of the game are open so you can inspect the video animations yourself and of course the code.
-
ReAnimator
- Regular
- Posts: 64
- Joined: Mon Dec 16, 2013 1:00 pm
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
Mmm, I don't see the difference. Both versions play well on my computer.
Though I think FPS should be 24 or 30 at most as it's just video?
Though I think FPS should be 24 or 30 at most as it's just video?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
Taking a look your video files, the vp8 file is encoded with 0.045 bits of data per pixel resulting in a bitrate data stream of 9 976 kb/s 
Whereas you vp9 encoded file is using a whopping 0.273 bits per pixel resulting in a bitrate of 62.8 Mb/s

Thats a 506.6% increase in system resource use, which on my computer, caused no lag or other issues, but my PC is fairly high spec.
I suggest compressing the file further.

Whereas you vp9 encoded file is using a whopping 0.273 bits per pixel resulting in a bitrate of 62.8 Mb/s

Thats a 506.6% increase in system resource use, which on my computer, caused no lag or other issues, but my PC is fairly high spec.
I suggest compressing the file further.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Re: Renpy 8.0.2 VP9 framerate issues
I made 2 more webm animations to test out and it's looks like it's something to do with VP9 playback. The VP8 animation is appears to play smoother and loop smoother than the VP9 animation with a lower bitrate.
I attached 2 images of the media info.
1 is a VP8 with a quality setting of 0 (Lower number = higher quality, from when it was encoded)
The other is a VP9 with a quality setting of 35 (Lower number = higher quality, from when it was encoded)
I attached 2 images of the media info.
1 is a VP8 with a quality setting of 0 (Lower number = higher quality, from when it was encoded)
The other is a VP9 with a quality setting of 35 (Lower number = higher quality, from when it was encoded)
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
- Contact:
Re: Renpy 8.0.2 VP9 framerate issues
Very odd then.
As I noted before, the game worked fine for me, no lagging or odd behaviour even with the larger file.
As I noted before, the game worked fine for me, no lagging or odd behaviour even with the larger file.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Free Android GUI - Updated occasionally
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Re: Renpy 8.0.2 VP9 framerate issues
I have more animations you can test out with it so you can see the difference in how it plays. There are 4 animations, that are paired up with each other. x
"vp8_q0_a1" and "vp9_q0_a1" are one pair. The quality is on 0 (lower is higher, with 0 being highest quality).
"vp8_q35_a2" and "vp9_q35_a2" are another pair of animations that can be tested. (Quality of 35 for these pairs)
Since there is faster movement in the animations it helps being able to see the difference.
Link to animations for testing: https://www.mediafire.com/file/n5di04vr ... 1.zip/file
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]