View Issue Details

IDProjectCategoryView StatusLast Update
0005956Spring engineGeneralpublic2018-09-01 02:15
ReporterFloris Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0005956: Windows 10 Pro users have inverted mouse camera panning
Descriptionever since a windows 10 update months ago. (after version 1709)

Bluestone said its some SDL issue. And a quic ksearch results in other software experiencing this as well

I myself have this as well and am using zooming to move my camera around :/
TagsNo tags attached.
Attached Files
Checked infolog.txt for Errors

Relationships

has duplicate 0005983 closedKloot Camera stuttering while moving 

Activities

Floris

2018-04-10 23:08

reporter   ~0019002

I must note that its not just inverted, it tries to go in right direction but then moves the opposite direction, jittery

silentwings

2018-04-10 23:19

reporter   ~0019003

After further reading, it seems even wider than just SDL using software: https://www.google.co.uk/search?q=windows+1709+mouse+jitter+site:answers.microsoft.com

silentwings

2018-04-10 23:44

reporter   ~0019004

https://hg.libsdl.org/SDL/rev/c70cf178aacb

abma

2018-04-11 10:16

administrator   ~0019005

SDL 2.0.8 seems to contain the workarround, so updating SDL in mingwlibs should fix this issue.

hokomoko

2018-04-11 13:20

developer   ~0019006

will do

hokomoko

2018-04-11 18:30

developer   ~0019007

k, the libs were updated, may be necessary to force builds later

hokomoko

2018-04-12 18:28

developer   ~0019008

Floris can you test latest maintenance?
https://springrts.com/dl/buildbot/default/maintenance/104.0.1-399-ga506a03/win32/

Floris

2018-04-12 20:42

reporter   ~0019011

still happening

Kloot

2018-04-12 23:47

developer   ~0019012

Last edited: 2018-04-12 23:49

does the SDL version string in your infolog actually contain 2.0.8?

abma

2018-04-12 23:54

administrator   ~0019013

i can confirm that mingwlibs were updated / spring completely rebuild here:
https://buildbot.springrts.com/builders/full-windows-test/builds/6119/steps/build%20dir%20create/logs/stdio

>= 104.0.1-779-g13f71b9 develop

>= 104.0.1-399-ga506a03 maintenance should contain updated SDL, too

if not its a buildbot bug.

so please, whats your line in infolog.txt, for me its on linux currently ( Spring 104.0.1-151-g11de57d maintenance)
        SDL version : 2.0.8 (linked) / 2.0.1 (compiled)

Floris

2018-04-13 11:14

reporter   ~0019015

-399:
SDL version : 2.0.8 (linked) / 2.0.8 (compiled)

included infolog
infolog.txt (Attachment missing)

Kloot

2018-04-14 02:25

developer   ~0019016

+static SDL_bool
+IsWin10FCUorNewer(void)
+{
+...
+if ( (info.dwMajorVersion == 10 && info.dwMinorVersion == 0 && info.dwBuildNumber >= 16299) ...) return SDL_TRUE;
+...


"Microsoft Business Edition, 64-bit (build 9200)"


Spring's OS version check code was last touched seven years ago before Windows 10 existed, but if this build number matches what SDL is seeing the patch will do nothing on your system.

Santibag

2018-05-13 21:21

reporter   ~0019110

I opened the duplicate of this. The difference is, I have this in Microsoft Home Premium Edition, 64-bit (build 9200), as stated in my infolog file at:
https://springrts.com/mantis/view.php?id=5983

Link is the same as the relation shown above.

Kloot

2018-05-13 22:39

developer   ~0019111

the Windows build number in infolog can be ignored, what matters is the FCU detection code in SDL 2.0.8.

again though, you should test an engine **newer than 104.0.1-399-ga506a0** to know if the SDL patch helps at all.

Floris

2018-05-13 22:51

reporter   ~0019112

still happening for me on -517

Kloot

2018-08-31 16:39

developer   ~0019324

Fix 9d0297acf709c8e897fece2089838da78f1bab68 committed to develop branch: fix 0005956, repo: spring changeset id: 10614

Kloot

2018-08-31 16:40

developer   ~0019325

Fix d83f7a005aecdc2ffe2664a56d147ae4b3be371c committed to maintenance branch: fix 0005956, repo: spring changeset id: 10615

Floris

2018-08-31 18:08

reporter   ~0019326

I tried 104.0.1.677 and its moving in the right direction now but the mouse isnt kept in the center of the screen, so the cross direction indicator is odd and the mouse wont be in center when you exit the camera-pan mode.

(there is also still another (old)problem that the camera sometime jumps to some other place when you initiate the camera pan mode)

Kloot

2018-08-31 18:27

developer   ~0019327

Last edited: 2018-08-31 18:41

strange, the mouse center position is explicitly restored on pan-exit. try 680-gdce9dc0 later.

setting the MouseRelativeModeWarp config added in 678 to 0 might work for you (but probably will just reintroduce jitter), I can't do much more about this without getting an actual Windows development environment.

Floris

2018-08-31 21:36

reporter   ~0019328

tried .680, the mouse position gets placed in center when exiting camera-pan mode now. The pan cursor is still wrong.

Here is a recording of it that depicts the odd camera-pan cursor and the sudden camera jump when enabling camera-pan mode at 10 and 20 secs in the video:
https://www.youtube.com/watch?v=7XlIxMQMs9Q

Floris

2018-08-31 21:39

reporter   ~0019329

... maybe not when enabling the camera-pan mode alone, but combined with directly moving cursor any bit as well right after

Kloot

2018-09-01 02:14

developer   ~0019330

Last edited: 2018-09-01 02:15

cursor is back to normal.

idk what causes (and couldn't reproduce) the jumping glitch, but it looks unrelated.

Issue History

Date Modified Username Field Change
2018-04-10 23:04 Floris New Issue
2018-04-10 23:08 Floris Note Added: 0019002
2018-04-10 23:19 silentwings Note Added: 0019003
2018-04-10 23:44 silentwings Note Added: 0019004
2018-04-11 10:16 abma Note Added: 0019005
2018-04-11 13:20 hokomoko Note Added: 0019006
2018-04-11 18:30 hokomoko Note Added: 0019007
2018-04-12 18:28 hokomoko Note Added: 0019008
2018-04-12 20:42 Floris Note Added: 0019011
2018-04-12 23:47 Kloot Note Added: 0019012
2018-04-12 23:49 Kloot Note Edited: 0019012
2018-04-12 23:54 abma Note Added: 0019013
2018-04-13 11:14 Floris File Added: infolog.txt
2018-04-13 11:14 Floris Note Added: 0019015
2018-04-14 02:25 Kloot Note Added: 0019016
2018-05-13 21:07 Kloot Relationship added has duplicate 0005983
2018-05-13 21:21 Santibag Note Added: 0019110
2018-05-13 22:39 Kloot Note Added: 0019111
2018-05-13 22:51 Floris Note Added: 0019112
2018-08-31 16:39 Kloot Changeset attached => spring develop 9d0297ac
2018-08-31 16:39 Kloot Note Added: 0019324
2018-08-31 16:39 Kloot Assigned To => Kloot
2018-08-31 16:39 Kloot Status new => resolved
2018-08-31 16:39 Kloot Resolution open => fixed
2018-08-31 16:40 Kloot Changeset attached => spring maintenance d83f7a00
2018-08-31 16:40 Kloot Note Added: 0019325
2018-08-31 18:08 Floris Status resolved => feedback
2018-08-31 18:08 Floris Resolution fixed => reopened
2018-08-31 18:08 Floris Note Added: 0019326
2018-08-31 18:27 Kloot Note Added: 0019327
2018-08-31 18:41 Kloot Note Edited: 0019327
2018-08-31 21:36 Floris Note Added: 0019328
2018-08-31 21:36 Floris Status feedback => assigned
2018-08-31 21:39 Floris Note Added: 0019329
2018-09-01 02:14 Kloot Status assigned => resolved
2018-09-01 02:14 Kloot Resolution reopened => fixed
2018-09-01 02:14 Kloot Note Added: 0019330
2018-09-01 02:15 Kloot Note Edited: 0019330