Is the wipeleft Transition Irrationally Slow?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Is the wipeleft Transition Irrationally Slow?

#1 Post by papiersam »

Code: Select all

label start:
    
    call screen a
           
screen a:
    
    add "#fff"
    textbutton "Menu" action Show('b', transition=wiperight)
    
screen b:
    frame:
        xsize 300
        yalign 1.0
        background "#000"    
    textbutton "Map" action Hide('b', transition=wipeleft)
Is the wipeleft delaying for anyone else? Because the other ones aren't, but wipeleft waits for a moment before running. Experienced on the current version of Renpy (6.99.12).

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

Re: Is the wipeleft Transition Irrationally Slow?

#2 Post by Imperf3kt »

Happening here too, on the previous release. It appears to be taking about a second before the button responds.
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

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: Is the wipeleft Transition Irrationally Slow?

#3 Post by papiersam »

Okay, testing the code above and looking closely, you can see a 1 pixel black line sweep the screen until it reaches the frame. So the delay in this case is the time it takes for the transition to reach any non-transparent objects.

Addendum: how do we side-step this?

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: Is the wipeleft Transition Irrationally Slow?

#4 Post by PyTom »

Honestly, your best bet is to just use a transform:

Code: Select all

label start:

    call screen a

    return

screen a:

    add "#fff"
    textbutton "Menu" action Show('b')

screen b:
    frame:
        at btransform
        xsize 300
        yalign 1.0
        background "#000"
    textbutton "Map" action Hide('b')


transform btransform:
    on show:
        offscreenleft
        linear .5 left

    on hide:
        linear .5 offscreenleft

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