bradharding / doomretro

The classic, refined DOOM source port. For Windows PC.
https://www.doomretro.com
GNU General Public License v3.0
698 stars 88 forks source link

Mouse issues on Raspberry Pi (2) #103

Closed sneakernets closed 9 years ago

sneakernets commented 9 years ago

When using Doom Retro today, the mouse movement seemed to be "chunky". when using keyboard, turning was smooth, but using the mouse resuilted in a very choppy turning. happens in fullscreen and windowed.

Not sure what causes this, but maybe someone out there would know.

bradharding commented 9 years ago

I'm not sure what's happening here. People have been reporting this issue since v1.0, and even with SDL2, the issue is still occurring. The problem is occurring for me here in the debug build, but not the release build. I don't think it's a rendering issue( that is now most definitely fast enough), so I guess it has something to do with how DOOM RETRO is handling mouse events.

bradharding commented 9 years ago

Made some tweaks to the mouse input in commit 5d0f42fdd8b22d34a39d909f714953afde2efe52. Please see how it is for you now. I said above that it was happening in the debug build: I overlooked the fact I was testing in software mode. It's fine when using hardware acceleration, so perhaps it is a rendering issue. Since you're using SDL1.2, experiment with changing vid_scaledriver to nanox, fbcon, directfb or svgalib. You'll need to restart DR after each change.

sneakernets commented 9 years ago

I'm using dispmanx for the driver (custom SDL1.2 for raspi thanks to the retropie project) and it still lags a bit in the mouse. hmm.... I'll try without X11 mode now and see if that is the issue.

bradharding commented 9 years ago

Is this still occurring for you? The uncapped framerate I implemented yesterday may resolve this. With the latest commits, what sort of FPS are you getting if you enable com_showfps?

sneakernets commented 9 years ago

I attemped to compile it today and ran into this:

c_cmds.c:1845:1: error: unknown type name ‘SDL_Window’
 extern SDL_Window       *window;
 ^
Makefile.rpi:52: recipe for target 'c_cmds.o' failed
make: *** [c_cmds.o] Error 1

I'll check the mouse once it compiles :v

sneakernets commented 9 years ago

Looks like the mouse issue has been fixed! :D

bradharding commented 9 years ago

Awesome! Closing this then.