Viewport scrolling stutters in fullscreen (7.4.6.1693)

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
felsenstern
Regular
Posts: 72
Joined: Tue Jul 11, 2017 2:13 am
Contact:

Viewport scrolling stutters in fullscreen (7.4.6.1693)

#1 Post by felsenstern »

Hi,

I have a screen with 5 imagebuttons (focus_mask True) that is larger than my physical screen (which is 1600x900).
I use viewport and edgescroll to make the whole virtual screen accessible.
In windowed mode everything works fast and fine. Even when I maximize the window (in 4k).
But if I switch to fullscreen mode with ALT+Enter or in the options menu, the scrolling starts to stutter (Windows 10, 4k resolution, 150% scaled).

The only workaround I found so far is to set focus_mask to False.


https://drive.google.com/file/d/1whOOft ... sp=sharing

Code: Select all

screen bedroom():
    viewport id "bedroom":
        child_size (2115, 900)
        side_xpos 0
        side_ypos 0
        xinitial 0
        edgescroll (650, 800)

        add "jpa_bedroom_bg_g.webp"
        text "click on an item to quit"

        imagebutton:
            focus_mask True
            xpos 16
            ypos 154
            idle "jpa_bedroom_door_g.webp"
            hover im.MatrixColor("jpa_bedroom_door_g.webp", im.matrix.brightness(.1))
            action Return()

        imagebutton:
            focus_mask True
            xpos 220
            ypos 240
            idle "jpa_bedroom_mirror_g.webp"
            hover im.MatrixColor("jpa_bedroom_mirror_g.webp", im.matrix.brightness(.1))
            action Return()

        imagebutton:
            focus_mask True
            xpos 688
            ypos 542
            idle "jpa_bedroom_bed_g.webp"
            hover im.MatrixColor("jpa_bedroom_bed_g.webp", im.matrix.brightness(.1))
            action Return()

        imagebutton:
            focus_mask True
            xpos 1466
            ypos 202
            idle "jpa_bedroom_wardrobe_g.webp"
            hover im.MatrixColor("jpa_bedroom_wardrobe_g.webp", im.matrix.brightness(.1))
            action Return()

        imagebutton:
            focus_mask True
            xpos 1652
            ypos 457
            idle "jpa_bedroom_desk_g.webp"
            hover im.MatrixColor("jpa_bedroom_desk_g.webp", im.matrix.brightness(.1))
            action Return()

label main_menu:
    call screen bedroom
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it

felsenstern
Regular
Posts: 72
Joined: Tue Jul 11, 2017 2:13 am
Contact:

Re: Viewport scrolling stutters in fullscreen (7.4.6.1693)

#2 Post by felsenstern »

bump
---
Yes, I've Read The F*cking Manual
Yes, I've used the f*cking search function
Yes, I've used a site search
No, I don't need a reminder that search functions exist
No, I don't need your astonished outbreak that I couldn't find the information
No, I don't need your answer if you can't just give it without all the BS around it

Post Reply

Who is online

Users browsing this forum: BBN_VN, Bing [Bot]