M-HT / SR

A project to statically recompile following games to create Windows or Linux (x86 or arm) versions of the games - Albion, X-Com: UFO Defense (UFO: Enemy Unknown), X-Com: Terror from the Deep, Warcraft: Orcs & Humans, Septerra Core: Legacy of the Creator, Battle Isle 3: Shadow of the Emperor
305 stars 17 forks source link

Septerra Core: Windows 10 64 bit. Mouse stutter tied to polling rate? #30

Closed Crim001 closed 2 years ago

Crim001 commented 3 years ago

This SR port of Septerra Core is great! I've noticed, however that when using my gaming mouse that the mouse stutters constantly. I have realized that it is tied to the mouse polling rate. If I use my gaming mouse default of 1000 Hz it is very jittery. Buttery smooth though at 125 Hz.

I wrote about this experience a bit back on the GOG forums, but have decided to bring it to your attention here in case it may help others who are also having problems with mouse stuttering.

M-HT commented 3 years ago

My mouse only has the standard 125 Hz polling rate, so I can't test this.

DukeSkinny commented 2 years ago

Can confirm this happens with my 500 Hz mouse as well. Unfortunately the manufacturer doesn't provide any software means to adjust the polling rate, so I can't confirm the fix.

M-HT commented 2 years ago

Can someone test the attached executable whether it fixes the issue ?

SepterraCore-Windows-x86-test.zip

DukeSkinny commented 2 years ago

Seems to improve things somewhat on my end, but the issue remains.

M-HT commented 2 years ago

What about this one ?

SepterraCore-Windows-x86-test2.zip

DukeSkinny commented 2 years ago

Brilliant! Completely fixed the issue for me.

Crim001 commented 2 years ago

I can confirm that the SepterraCore-Windows-x86-test2.zip seems to completely fix the issue. I no longer need to reduce my mouse polling rate to have smooth mouse movement. Fantastic, thanks!

M-HT commented 2 years ago

Can you please also test this one ?

SepterraCore-Windows-x86-test3.zip

DukeSkinny commented 2 years ago

Works like a charm.

Crim001 commented 2 years ago

Confirmed SepterraCore-Windows-x86-test3.zip also works

Zombeaver commented 2 years ago

This fixes the issue for me at 500hz or below but it persists at 1000hz. I tried all 3 versions.

M-HT commented 2 years ago

Does test4 also fix the issue ?

SepterraCore-Windows-x86-test4.zip

@Zombeaver Can you try test5 and test6 if either or both of them fix the issue at 1000Hz ?

SepterraCore-Windows-x86-test5.zip SepterraCore-Windows-x86-test6.zip

DukeSkinny commented 2 years ago

Sadly, no dice with SepterraCore-Windows-x86-test4.zip. The last 2 still perform well.

Zombeaver commented 2 years ago

test5 and test6 both fix it for me at 1000hz!

Crim001 commented 2 years ago

test5 and test6 also fix the mouse issue for me. Interestingly though, if I have vsync disabled test5 and test6 will make the camera moving that occurs after battle before you get experience/results stutter and take an extended time to happen (test 5 is worse for this, I originally thought the game had frozen it was going so slow). test3 also does it, but is almost unnoticeable. Enabling vsync makes it move smoothly after battle like usual.

M-HT commented 2 years ago

I released a new version of Septerra Core. I added a new configuration option: CPU_SleepMode. The default value is standard. If you have a problem with mouse stuttering (because of higher mouse polling rate) then set the value to reduced. If that doesn't fix the problem, then set the value to nosleep.

JJDrago commented 1 year ago

@M-HT I do not know who you are, or where you live, but I will find you and I will marry you. THANK YOU!