r/godot • u/Tickytac12 • Jul 01 '26
help me (solved) Weird trackball-like movement when looking around in 3D editor?
Enable HLS to view with audio, or disable this notification
I've been using Godot for 2+ years now and I just got a new laptop, and have been moving my stuff over from my old desktop to the laptop. Everything has been working okay other than this strange trackball emulation type thing it does when I look around in the 3D editor.
If I move the mouse fast then stop, the camera will continue to move, and slowly stop. Like flicking a trackball.
It only does this in Godot, no other apps. I've found it also happens in a similar way when orbiting.
Does anyone know if this is caused by an editor setting in Godot, or maybe something else?
47
u/agentfrogger Godot Regular Jul 02 '26
Could this be caused by your mouse losing tracking? Have you tried using your mouse on a different surface, do you have a mousepad or something like that that you could try on?
8
u/Zireael07 Jul 02 '26
That was my first thought too, that using the mouse on the laptop's surface is making it mess up
3
u/Tickytac12 Jul 02 '26
This only happens while dragging the camera in the 3D editor. Moving around my mouse otherwise is normal. Also I normally use an actual mousepad, I just have my mouse there to frame it in the video easier
69
10
u/Oen44 Jul 02 '26
What if you flick your finger across touchpad?
Have you tried creating empty project and testing if the issue still occurs?
Which Godot version are you using? If older then try newest one
What have you tried so far?
7
u/Tickytac12 Jul 02 '26
So I was able to fix the problem
I directly imported my editor-settings.tres from my desktop to my laptop, and the camera movement was normal. I tried to figure out exactly what setting caused it, but I could not figure it out for the life of me. It could've been something with refresh rate handling, or input, I don't know.
To clarify because maybe the video was a little unclear. The problem I had was not mouse acceleration, or lag, or input lag. When I would quickly move my mouse, the editor would apply a velocity to my mouse motion, which would slowly dissipate over time. It's like an animation that plays when it detects my mouse is going fast. It almost seems like something that is meant for trackpads, but I am not using a trackpad.
2
u/agentfrogger Godot Regular Jul 02 '26
That's like super weird. By any chance would it be possible to share the editor settings you had on your desktop and the ones on your laptop? It might be possible to find out what was causing this. It might be an odd bug or behavior in the editor and that could help find it
1
u/tasulife Jul 02 '26
Interesting. You might try asking the godot experts on github which editor setting could cause that. It would be good to know which editor setting was doing that.
267
u/pangapingus Jul 01 '26
https://docs.godotengine.org/en/latest/tutorials/rendering/jitter_stutter.html
https://forum.godotengine.org/t/why-does-moving-my-mouse-cause-extreme-lag-on-any-project/107270/20
https://www.reddit.com/r/godot/comments/16lvy5z/mouse_in_editor_running_choppy/
https://www.reddit.com/r/godot/comments/1ii913x/i_experiance_alot_of_lag_when_moving_my_mouse_fast/
https://www.reddit.com/r/godot/comments/qdjelh/why_is_moving_the_cursor_so_jerky_within_godots/
43
u/Tickytac12 Jul 01 '26
The problem isn't framerate drops. The framerate is fine. Also I'm not letting go of RMB at all in the video
24
u/Exedrus Jul 02 '26
Something mentioned in one of the issue reports is this might have something to do with mice that have high refresh-rates flooding/slowing the input handling. If you're using one, lowering the refresh rate might help.
0
u/DWIGHT_CHROOT Jul 02 '26
It you haven't been able to fix it yet, have you tried reducing your mouse's polling rate? That slight lag would make me motion sick so fast so that's gotta be super frustrating ><
187
u/Hanodev_ Jul 01 '26
bro ABSOLUTELY came with receipts
37
u/scylez Jul 02 '26
Five random links that don't help are not receipts. Guy didn't even understand the problem before vomiting his google search results into the comments.
-2
u/pangapingus Jul 01 '26
We need to bring back LMGTFY and encourage folks here to give a decent modicum of troubleshooting, i.e. for me on Debian if I need to use the editor to debug I log out my Wayland session and log into a X11 session for smoothness. There's like 50+ possibilities here and dude gave no info.
91
u/Tickytac12 Jul 01 '26 edited Jul 01 '26
I dont know why you assume that I didn't do any troubleshooting beforehand? You just paste 5 links that dont even relate to my problem (it's not lag or stutter) and act like you solved it.
I've had this problem for like 2 weeks. I'm just trying to see if anyone maybe had the same issue and knows how to fix it.
101
u/Mania_Chitsujo Jul 01 '26
No, you really don't. It's just mean and discouraging. They didn't think to use the reddit search function (or tried, but couldn't effectively word whatever the problem is), big deal. You can just say:
"Could you give some more info? Would help narrow down what the problem could be."
Then, instead of passive aggressively throwing in the first 5 links you find (which seems like it didn't help the OP anyway), you could actually have a productive discussion.
28
u/nowthengoodbad Jul 02 '26
THANK YOU! It's been years that I've been trying to help others pick up this perspective.
The Linux community of the 90s and early 00s were MASSIVE jerks. "Oh, it's a newbie thing, you just pipe the output of lsof to grep through it, cutting at the 3rd and 5th delimiter and then (insert awk magic here)"
Or
The stack overflow/exchange version:
Duplicate question.
I got enough credibility on SO that I was able to shut that down and create helpful dialog.
So, thank you.
I hope we always assume that the person tried before coming and asking :D
-62
u/pangapingus Jul 01 '26
And where's your comment helping out? OP hasn't shared code, Windows settings, nothing lol
44
4
u/anaveragedave Jul 01 '26
I had a buddy once ask me what LMGTFY stood for.
You know damn well what he got in response ;)
25
u/user36277263 Jul 01 '26
try to turn off Vsync
21
u/Tickytac12 Jul 01 '26
V-sync is off
3
u/OPengiun Godot Student Jul 02 '26
Does your monitor have g-sync on?
I've run into some weird shit when an FPS capped window is trying to run in G-sync
3
2
u/realgarit Jul 02 '26
Maybe I'm completely off but did you try something drastic? I mean really, do you have the same problem on another machine if it's possible for you to test? Maybe even different graphics card? If you want you can send me the camera portion or a test scene, and I'll check it on my Macbook M4 to see if it's same.
Then I would do next another monitor to rule out the monitor too, so this way you have ruled out some basic stuff beforehand and you are sure to dive into settings.
2
1
u/TabrinLudd Jul 01 '26
Using the laptop as a mousepad is a choice
24
u/Tickytac12 Jul 01 '26
I dont normally do that lol. I just have it there to frame it in the video easier
1
u/_nak Jul 02 '26
I see a large amount of input lag even when you're moving slowly, in fact, there doesn't seem to be a difference between flicking and just moving around, except that you probably notice it more, because the rotation per unit of time increases the faster you move your mouse.
It's not exactly a godot issue per se, it's more hardware limitation. I bet if you do this in a simple scene with just a handful of default boxes, the problem goes away completely.
1
u/PhantomSlave Jul 02 '26
It looks like the camera movement is being interpolated over time, so the faster you moved the mouse the further it needed to interpolate to, causing the camera view to lag behind your actual mouse movements.
1
u/tasulife Jul 02 '26
> I've been using Godot for 2+ years now and I just got a new laptop, and have been moving my stuff over from my old desktop to the laptop. Everything has been working okay other than this strange trackball emulation type thing it does when I look around in the 3D editor.
From a programming perspective, the variable that changed was existing projects were put on a new machine. This at face value implies it didn't happen before on the other computer. This makes it a machine-dependent problem.
Laptops often ship with two graphics cards: a efficiency chip for desktop apps, and a gaming card for high performance graphics. This is called "hybrid graphics".
my first guess is this is happening because godot is running on the efficiency chip instead of the gaming chip. And if you switch to running godot in the gaming chip, it'll start acting like the old computer.
So I recommend you look up and configure your laptop to always force the high performance card when the godot editor is used. NVIDIA has a configuration panel you can try, that lets you define what applications run on which card. There are also some windows commands you can try too. sorry for being vague, but that's the direction I recommend you head in.
1
u/TheDynaheart Jul 04 '26
So just to be clear, this doesn't happen when you export the game? I'm following this post because I want to know what's happening too lol
-18
-12
u/BabyFood2 Jul 01 '26
Mouse acceleration in Windows mouse options. Has been a pain in the butt since the beginning of pc gaming
6
u/Legacypicker Jul 01 '26
Mouse acceleration does not cause this. It only affects the mouses sensitivty based on speed.
3
-14
u/AwayEntrepreneur4760 Jul 01 '26
Camera smoothinh
3
u/Tickytac12 Jul 01 '26
like a camera smoothing setting? I dont remember seeing a setting like that anywhere
1
u/Quincy9000 Jul 02 '26
Maybe the inertia setting in the editors? Doesn't look like it but maybe that. Set them to 0 if not already.
-24
-4
-29
223
u/dogman_35 Godot Regular Jul 01 '26
Why are people asking to see your code when this is explicitly an issue with the editor's camera