Page 1 of 1

Camera rotation bug.

PostPosted: Fri Sep 04, 2015 20:13
by Igor47
Hi everyone.
I just joined the forums, and my English suck, so I hope you'll understand everything I'll try to explain.

I played Minetest 0.4.12 on my laptop without any problems.
When I updated it to 0.4.13, I ran into a problem...
Whenever I move my mouse just a little bit, camera starts spinning slowly and endlessly in the direction I moved my mouse.
I searched some info about this bug previously, and the only solution I found was switching to fullscreen, but that does not help at all.
However, when I use touchpad, it runs flawlessly, but it is uncomfortable.

My specs:
Intel Core i7 4710HQ
Nvidia GeForce GTX 860m
8GB Ram
Windows 10

EDIT:
I ACCIDENTALLY fixed that bug by messing around in registry.
I had a little issue with my touchpad. When I type or hold any button, cursor stops moving. So to disable that, I had to switch some values with regedit, and after I rebooted my laptop, I noticed that there is no more problems with rotation, and I am unable to reproduce the bug.

Re: Camera rotation bug.

PostPosted: Fri Sep 04, 2015 23:23
by Dragonop
You have Cinematic mode enabled maybe? Push F8 to enable/disable it.

Re: Camera rotation bug.

PostPosted: Sat Sep 05, 2015 04:28
by Igor47
No, cinematic mode is disabled. But it also occures during cinematic mode.

Re: Camera rotation bug.

PostPosted: Sat Sep 05, 2015 08:06
by rubenwardy
It does sound like camera smoothing causes it. (Camera smoothing was added at the same time as cinematic mode).

What type of mouse do you use? Just a normal optical one?

At a guess I'd say there's a rounding error somewhere.

Re: Camera rotation bug.

PostPosted: Sat Sep 05, 2015 11:27
by Igor47
I am using normal optical mouse.
Is there way to disable camera smoothing?

Re: Camera rotation bug.

PostPosted: Sat Sep 05, 2015 13:07
by rubenwardy
It should be disabled by default.

What fps do you get?

Re: Camera rotation bug.

PostPosted: Sat Sep 05, 2015 14:03
by Igor47
Are there any fixes?
Or should I wait for 0.4.14?

Re: Camera rotation bug.

PostPosted: Sat Sep 05, 2015 16:16
by rubenwardy
I can't fix it without some more info about why it works on my computer but not yours. When I make a fix, it should be in 0.4.14 or you would be able to get it by using a dev version.

What fps do you get? This is important as it effects how much the code is run per second.

I wrote the camera smoothing code, and was afaik the last person to touch this area.

Re: Camera rotation bug.

PostPosted: Sun Sep 06, 2015 08:28
by Igor47
FPS is another thingy I want to argue about. Like its really low and unstable on my laptop(specs above), and I guess it caused by continious loanding and unloading chunks.It ranges from 15 to 25 fps in jungle area.
Setting Min and Max render distances will stabilize fps alot, so it would be great to have that option in settings menu.
Using paramats Watershed mod , and generating custom terrain and equalizing min and max render distances, I get 60-50 fps.

EDIT:
I ACCIDENTALLY fixed that bug by messing around in registry.
I had a little issue with my touchpad. When I type or hold any button, cursor stops moving. So to disable that, I had to switch some values with regedit, and after I rebooted my laptop, I noticed that there is no more problems with rotation, and I am unable to reproduce the bug.

Re: Camera rotation bug.

PostPosted: Sun Sep 06, 2015 16:51
by benrob0329
Minetest is undergoing some major performance improvements, so things should get better performance wise. Until then one thing you can do is use a LuaJIT build, that should help a lot with loading time and heavy mod like mobs redo.

Re: Camera rotation bug.

PostPosted: Tue Sep 08, 2015 04:16
by wilkgr76
Igor47 wrote:Hi everyone.
I just joined the forums, and my English suck, so I hope you'll understand everything I'll try to explain.

I played Minetest 0.4.12 on my laptop without any problems.
When I updated it to 0.4.13, I ran into a problem...
Whenever I move my mouse just a little bit, camera starts spinning slowly and endlessly in the direction I moved my mouse.
I searched some info about this bug previously, and the only solution I found was switching to fullscreen, but that does not help at all.
However, when I use touchpad, it runs flawlessly, but it is uncomfortable.

My specs:
Intel Core i7 4710HQ
Nvidia GeForce GTX 860m
8GB Ram
Windows 10

Try disabling the option "Improve pointer precision" in Windows mouse settings. Worked for me.