https://bugs.kde.org/show_bug.cgi?id=508822

            Bug ID: 508822
           Summary: SDL_WarpMouseInWindow breaks V-SYNC under Wayland/kwin
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 184506
  --> https://bugs.kde.org/attachment.cgi?id=184506&action=edit
testing app

SUMMARY
If SDL_WarpMouseInWindow is used in combination with SDLGPU3 and Wayland/kwin,
V-SYNC is not respected.

Initially I reported this in SDL's bug tracker
https://github.com/libsdl-org/SDL/issues/13812 but it does not seem to be a SDL
bug, since it cannot be reproduced in other DE's. Also v-sync works fine with
X11. 

STEPS TO REPRODUCE
1. compile the attached file "g++ vsync-test.cpp -o vsync-test -lSDL3"
2. Run the executable
3. comment-out the "SDL_WarpMouseInWindow(window, 0, 0);"  line and recompile
4. Run the executable again

OBSERVED RESULT
With SDL_WarpMouseInWindow, v-sync is disabled. The executable prints: Frame
time: 0

EXPECTED RESULT
In both cases v-sync should be enabled.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
-

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to