Animation slows down
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.
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Animation slows down
Hello, when starting a video (animation) in renpy, the animation lags a bit, how can this be fixed? Thank you very much in advance!
(1920 x 1080 | 1 second | 998 kb)
(1920 x 1080 | 1 second | 998 kb)
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: Animation slows down
Post your code so someone can help you better
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Re: Animation slows down
Code: Select all
image anim1 = Movie(channel="anim", play="movies/anim_five.webm") # Video.
scene anim1
Re: Animation slows down
Any chance that few lines later in game you have lots of images/videos to show, so the lag is caused by Ren'Py trying to preload those images/videos?
Have you tried to show the other movie in this line - is the lag persist?
Have you tried to show the other movie in this line - is the lag persist?
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Re: Animation slows down
After the animation I thought about it beforehand and removed everything to the end of the label, I used other animations and such a delay was not or I did not notice, but put the animation by looping through file sharing and everything looked fine, only renpy lags
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Re: Animation slows down
And although by inserting a different animation, I also notice some lags
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: Animation slows down
how many frames are you using?
and I would use show instead of scene
if the animation are only 5 frames then I would this code here
and I would use show instead of scene
if the animation are only 5 frames then I would this code here
Code: Select all
image anim_scene_1:
"images/anim/image1.png"
pause 1.0
"images/anim/image2.png"
pause 1.0
"images/anim/image3.png"
pause 1.0
"images/anim/image4.png"
pause 1.0
"images/anim/image5.png"
repeat
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Re: Animation slows down
Frankly, I would prefer a video format, I just need to eliminate lags, but I do not understand how to do it and would be grateful for any help with thisrayminator wrote: ↑Wed Jan 13, 2021 4:49 pm how many frames are you using?
and I would use show instead of scene
if the animation are only 5 frames then I would this code here
Code: Select all
image anim_scene_1: "images/anim/image1.png" pause 1.0 "images/anim/image2.png" pause 1.0 "images/anim/image3.png" pause 1.0 "images/anim/image4.png" pause 1.0 "images/anim/image5.png" repeat
Re: Animation slows down
Try to make the actual size of images/videos smaller than the screen size, then apply the zoom transform (zoom 1.5 shouldn't reduce the image quality too much).
https://www.renpy.org/doc/html/atl.html
https://www.renpy.org/doc/html/atl.html ... perty-zoom
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Re: Animation slows down
I already converted the video to webp format, which reduced the quality, if I further reduce the size and scale, the quality will drop even more and the picture becomes unbearable, are there any other options how I can put the video without small lags? Perhaps something with Renpy?Alex wrote: ↑Wed Jan 13, 2021 5:56 pmTry to make the actual size of images/videos smaller than the screen size, then apply the zoom transform (zoom 1.5 shouldn't reduce the image quality too much).
https://www.renpy.org/doc/html/atl.html
https://www.renpy.org/doc/html/atl.html ... perty-zoom
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Animation slows down
Where do you have the first line in this? It should ideally be placed somewhere before the start label.Line of lust wrote: ↑Wed Jan 13, 2021 3:35 pmCode: Select all
image anim1 = Movie(channel="anim", play="movies/anim_five.webm") # Video. scene anim1
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 27
- Joined: Sat Oct 05, 2019 8:52 am
- Contact:
Re: Animation slows down
It is placed right in front of the label startImperf3kt wrote: ↑Sat Jan 16, 2021 5:07 pmWhere do you have the first line in this? It should ideally be placed somewhere before the start label.Line of lust wrote: ↑Wed Jan 13, 2021 3:35 pmCode: Select all
image anim1 = Movie(channel="anim", play="movies/anim_five.webm") # Video. scene anim1
Who is online
Users browsing this forum: Dark79, Google [Bot], Majestic-12 [Bot]