Moving the cursor sinks performance

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
User avatar
Pyr0
Newbie
Posts: 20
Joined: Mon Aug 07, 2017 4:34 pm
Contact:

Moving the cursor sinks performance

#1 Post by Pyr0 »

For some reason, moving the mouse causes performance to sink. I've tested it with multiple things, but even something as simple as this:

Code: Select all

transform Blink:
    linear 1.0 alpha 0.0
    linear 1.0 alpha 1.0
    repeat
    
image test = Solid("#ff0000",xsize = 300, ysize = 300, xalign = 0.5, yalign = 0.5)

label start:    
    show test at Blink
    $renpy.pause()
Shows that, if you flail the mouse around like a madman, the game will start moving at 2-4 frames per second. Any way to fix this?

User avatar
Pyr0
Newbie
Posts: 20
Joined: Mon Aug 07, 2017 4:34 pm
Contact:

Re: Moving the cursor sinks performance

#2 Post by Pyr0 »

I tested the above code on my laptop, and it works perfectly. I'm just confused, now, because my laptop is fairly old and unperformant (even just using chrome is fairly laggy) while my tower is a much, much better computer. Could it be an issue with drivers? Or with Ren'py settings?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Moving the cursor sinks performance

#3 Post by PyTom »

It's possible? If you're using config.mouse, don't - it slows things down alot. Other than that, it's likely to be a computer problem.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users