Reproduced in Linux! The touchpad of my laptop generates MOUSEWHEEL events where event.wheel.y is zero. In tuxpaint.c search for the"if (0)" string, changing its else to else if (event.wheel.y != 0) fixes the problem for me. HTH Pere
Hi again, the attached patch to the master branch is just a proof of concept, it fixes the lag on my box, but it is neither curated nor fully tested. Basically it discards some screen refreshes if the lag is too much, more or less in the same way as we already discard mouse motion events if the computer can't process them. First it creates the renderer with VSync enabled to be able to test in all conditions, this should not be in the final patch, I guess. For the rendering stuff, it fully refreshes...
Hi, I've just installed Wayland + Gnome in my box, here are some findings: In SDL2, I can force lag even in X11 windowed by creating the renderer with VSync enabled. renderer = SDL_CreateRenderer(window_screen, -1, SDL_RENDERER_PRESENTVSYNC); As noted, none of the documented ways to disable VSync works in SDL2 if I created the renderer with VSync enabled. I do not understand why VSync is force enabled in Wayland + Gnome 50 + fullscreen, this doesn't happen in my box with Wayland + Gnome 48 + fullscreen(the...
Merge branch 'master' into sdl3
Mirror and Flip also for starters.
Merge branch 'master' into sdl3
Mirror and Flip also for Templates
Less warnings about maybe uninitialized stuff.