s25client icon indicating copy to clipboard operation
s25client copied to clipboard

Cant Scroll with right Mouse

Open Blackpearl1 opened this issue 2 years ago • 5 comments

Hi,

I installed a fresh Garuda DE with KDE on my System. Now I installed rttr, but, I cant scroll in the Game the Map with the right Mouse, it just scroll for for a part of a second and then it stops scrolling. If I click again it also scrolls for a small part of a second, again, and stops.

It makes no diferend if I play in windowed or fullscreen mode. In Windows 10 I dont get sutch problems in rtttr.

Other games work like a charm(some Steam games like HL2, UT3, Skyrim, C&C Remaster, ect...) or Games like Widelands(also use the right Mouse for scrolling).

Blackpearl1 avatar May 28 '22 12:05 Blackpearl1

Good catch, I can confirm it - this must have been recently regressed.

stefson avatar May 29 '22 07:05 stefson

@Flamefire are you able to confirm this on linux?

I'm having trouble finding the commit that regressed this, downgrading up to 0.9.1 shows the same very choppy rendering if right mouse click is hold.

stefson avatar May 30 '22 06:05 stefson

Possibly same issue as #1500 Not sure how to resolve this...

Flamefire avatar May 30 '22 13:05 Flamefire

Dont sounds similar. I have no problems with pointing. Only scrolling the map with rhight mouse button.

Blackpearl1 avatar May 30 '22 13:05 Blackpearl1

disabling smart cursour does help as a workaround, but I've got the impression that the acceleration of the scrolling is now a bit over the top (:

stefson avatar May 30 '22 17:05 stefson

I have the same issue on Manjaro, but on Bodhi Linux scrolling still works fine. The latter uses an older version of sdl

qrzn avatar Oct 07 '22 10:10 qrzn

unbuntu 21 and 22 are using the same sdl version, but only ubuntu 22 does not allow a smooth scrolling. anybody working on a solution or has a better workaround ? right now rttr is not playable under ubuntu

sundance69 avatar Oct 20 '22 05:10 sundance69

I have a solution in mind but not actively working on it as it requires quite a bit of changes

Flamefire avatar Oct 20 '22 08:10 Flamefire

Any news on this?

bmarwell avatar Jan 02 '23 13:01 bmarwell

Bump ubuntu 22 not working : upgraded OS :( either this or buy "New allies" looks crap. ow canthey invest millions and screw up. you guys are keeping it alive thank you

5ouls3dge avatar Feb 12 '23 16:02 5ouls3dge

Sorry nothing new here, to much else going on right now. I hope I'll find the time for this in the next 2-3 months.

Flamefire avatar Feb 12 '23 18:02 Flamefire

I can second that problem using Ubuntu 22.04.

siredmar avatar Feb 25 '23 22:02 siredmar

@Flamefire can you explain what your idea is you have in mind? Maybe someone else can try to work on this.

siredmar avatar Feb 27 '23 06:02 siredmar

@Flamefire can you explain what your idea is you have in mind? Maybe someone else can try to work on this.

The idea was to implement support for the relative mouse mode of SDL. Currently we do that manually: Scroll the map according to the distance the mouse was moved, then warp the mouse back to where it was.
Maybe that was messing stuff up and using SDL to keep the mouse at a single position and only react to the relative movements (when map movement is activated) avoids those issues.

But an emulation of that would need to be implemented for WinAPI and it has to be used by the code making sure the relative mode is correctly activated and deactivated in all circumstances.

Flamefire avatar Feb 27 '23 15:02 Flamefire

@Flamefire we have now at least 2 reports, that the latest nightly causes 1FPS issues - this PR might have broken something

Spikeone avatar Mar 11 '23 20:03 Spikeone

@Flamefire @Spikeone I can imagine that the FPS issues are sources by the fact, that now every mouse move event will be handled instead of only the first one. For me it could be a valid option to make this feature/Bugfix optional configurable (maybe even only with the config file) for the video driver. this way we woul keep the original behavior but allow testing with this bugfix. what do you guys think about this?

siredmar avatar Mar 11 '23 21:03 siredmar

Well it's strange, that disabling dynamic framerate seems to fix this for some people - although I have no problem with that option enabled.

Spikeone avatar Mar 11 '23 22:03 Spikeone