Slider Lags

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
ManticGaga
Newbie
Posts: 5
Joined: Sun Jul 23, 2023 3:41 am
Contact:

Slider Lags

#1 Post by ManticGaga »

Hello, I need some help.

When I move any slider a bunch of images load.
изображение_2024-01-14_032803925.png
(888.86 KiB) Not downloaded yet
When I hover it works as intended.
изображение_2024-01-14_032849062.png
изображение_2024-01-14_032849062.png (59.93 KiB) Viewed 25336 times
It causes great stutters and lag.

bar value Preference("text speed") released Play ("music", "audio/jingles/Piano Jingle 1.wav")
bar value Preference("auto-forward time")

Lags on both of them.
I will provide more info if necessary, just have no idea on what could be causing it.

User avatar
m_from_space
Miko-Class Veteran
Posts: 989
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Slider Lags

#2 Post by m_from_space »

ManticGaga wrote: Sat Jan 13, 2024 8:35 pm It causes great stutters and lag.
Are you talking about the web-version of your game or in general?

Is your first posted image some kind of console output? Because I'm not sure what I am looking at, sorry.

ManticGaga
Newbie
Posts: 5
Joined: Sun Jul 23, 2023 3:41 am
Contact:

Re: Slider Lags

#3 Post by ManticGaga »

m_from_space wrote: Tue Jan 16, 2024 8:30 am
ManticGaga wrote: Sat Jan 13, 2024 8:35 pm It causes great stutters and lag.
Are you talking about the web-version of your game or in general?

Is your first posted image some kind of console output? Because I'm not sure what I am looking at, sorry.
In general. Pictures are from image sequence in ctrl+d/developer menu.
Still don't know how to fix it, or what causes that lag.

User avatar
m_from_space
Miko-Class Veteran
Posts: 989
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Slider Lags

#4 Post by m_from_space »

ManticGaga wrote: Tue Jan 23, 2024 1:25 pm In general. Pictures are from image sequence in ctrl+d/developer menu.
Still don't know how to fix it, or what causes that lag.
When I move the slider you are mentioning, no images are loaded in the F4 image load log.

The images that are loaded in your case are gui images. What is strange is that some of them are repeatedly loaded. Is your image cache too small? Do you use very large images?

ManticGaga
Newbie
Posts: 5
Joined: Sun Jul 23, 2023 3:41 am
Contact:

Re: Slider Lags

#5 Post by ManticGaga »

m_from_space wrote: Sat Jan 27, 2024 10:04 am
ManticGaga wrote: Tue Jan 23, 2024 1:25 pm In general. Pictures are from image sequence in ctrl+d/developer menu.
Still don't know how to fix it, or what causes that lag.
When I move the slider you are mentioning, no images are loaded in the F4 image load log.

The images that are loaded in your case are gui images. What is strange is that some of them are repeatedly loaded. Is your image cache too small? Do you use very large images?
And they should not be loaded, it was not intended, I just cant understand what even causes moving slider to load that many images.
I have image buttons for left menu, Ill change it to image map, and see if that helps :oops:

ManticGaga
Newbie
Posts: 5
Joined: Sun Jul 23, 2023 3:41 am
Contact:

Re: Slider Lags

#6 Post by ManticGaga »

Ok I changed them to imagemaps, and it didnt solve this issue.
Then i found out that renpy.free_memory()) was the problem.
hotspot (48, 364, 229, 53) action (ShowMenu("history"), renpy.free_memory())
Still dont know how to solve it or do I even need call this funciton.

Post Reply

Who is online

Users browsing this forum: konimyun