When the option appears, the game starts to jam

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
NealPinkman
Newbie
Posts: 2
Joined: Mon Jan 24, 2022 1:01 am
Contact:

When the option appears, the game starts to jam

#1 Post by NealPinkman »

Guys, I have a problem.
All my pictures (films) are made by similar:

Code: Select all

###############################
image films = "a[number]"
image a001 = Movie(play="film001.webm")
image a002 = Movie(play="film002.webm")
...
image a998 = Movie(play="film998.webm")
image a999= Movie(play="film999.webm")
################################
label Event:
 $ number = renpy.random.randint(1,999)
 scene films with fade
  "that's OK! No Caton!"
  menu:
      "start to jam":
            "When the option appears, the video screen starts to jam"
It was smooth at first, so I did nearly a thousand?
Now there is a problem. Every time you encounter [menu option], the screen will start to jam
How can I solve this problem?
Because my native language is not English, I use translation software to express this problem as much as possible. :|

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: When the option appears, the game starts to jam

#2 Post by Imperf3kt »

You're probably hitting the limit of the RAM installed in your computer. Have a look at the task manager while running your game and watch for how much free memory is available and how much of that your game is using.
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

NealPinkman
Newbie
Posts: 2
Joined: Mon Jan 24, 2022 1:01 am
Contact:

Re: When the option appears, the game starts to jam

#3 Post by NealPinkman »

Imperf3kt wrote: Mon Jan 24, 2022 4:31 am You're probably hitting the limit of the RAM installed in your computer. Have a look at the task manager while running your game and watch for how much free memory is available and how much of that your game is using.
My memory stick is 32G and the manager shows that it only takes up less than 400MB

Will it be related to my use of too many 【imageXXX = MovieXXX】?
After I commented out half of the 【imageXXX = MovieXXX】, the test found that it was much smoother.....
Or the reason for using random numbers every time?

Post Reply

Who is online

Users browsing this forum: Google [Bot]