`When moving my mouse while any scene is running causes the framerate to drop. At first I thought that I had forgotten about some code that uses the mouse movement but even trying this on an empty scene causes the framerate to go from a smooth 150+ fps all the way down to under 30 depending on how hard I shake my mouse. I even tried this on a brand new project incase it had something to do with the autoloader and same issue. If anybody can help me with this that would be a great help!
I’ve never heard of such a bug, but if it occurs on any project you create, can you not try to update your Godot version to 4.4.stable? Or at least 4.3.stable?
I’ve upgraded to 4.4 stable and the fps doesn’t dip that drastically anymore however shaking the mouse still drops the fps by about 20 - 30 and the fps graph shows little spikes every time I do so. I don’t know if this is normal but I never had this issue with any other application besides the debug screen in Godot. Shaking the cursor with my trackpad instead of mouse causes slightly less frame dips but that might just be because I can’t move the cursor with a trackpad as easily. This also happens on all projects still.
Also shaking the mouse when it is not directly over the debug screen causes zero issues so I assume it has nothing to do with my computer. As soon as I move my cursor over the debug tab lag happens. I am happy its not so bad now but it would be great if it didn’t happen at all because down the line I am going to need to use the mouse quite abit for the game
Do you have anything showing up in the console/debugger logs? Would still be a weird issue, but logs spamming can drastically affect performances, and you’d have somewhere to start.
Also, I suppose you did search some solutions on the internet before. If you did find some links, feel free to share; even if they don’t give a proper solution, sometimes it can give some ideas.
Otherwise, I really have no idea what’s going on… I don’t think that sending us an empty project you’re creating that has the issue will allow us reproducing the bug, but I guess it’s worth a try?
Nothing is showing up in the console and I looked online for answers but most people who had similar issues happened because of code regarding mouse movement. I’ve created a new project with one node and a plugin that shows your fps as a graph. Even without the plugin and just displaying the fps to console using Engine.get_frames_per_second() does the same thing. I have shared the empty project files, you need to press f3 twice to get the detailed graph to show. How can I send the project files?
It’s certainly not the same issue you are having but it might be worth having a read of that thread to see if there is any cross over with your machine etc.
The only thing this project contains is a plugin to get detailed fps info. I know that it isn’t the culprit because I have tested without it and just printed the fps to console with my own code and it has the same issue. It isn’t as drastic as it was on godot 4.2.1 but I feel like there shouldn’t be any frame drops when simply using your mouse on a blank project.
Weird, at least I know that its a computer issue and not a project issue that all players will face. I will mark your request to upgrade versions as a solution for now because that did make it way better. Thanks for your help.
Have you tried switching mouse ? Is it a generic mouse using MS driver or a brand with its own drivers? Have you set a custom, very high polling rate for your mouse?
To me it sounds like buggy driver or hardware.
It still happens even with my trackpad so its probably not the mouse at fault. Possibly a driver thing however. I even tried changing the dpi to all sorts of things but it was the same.
I changed my mouse polling/refresh report rate to the lowest it could be. In my case it was 125 in Logitech G Hub.
Every couple weeks this is brought up. Been an issue for several years now.
Edit: Also my theory is that when playing the game through the editor, it reports the mouse movement more than twice at the same time. Can’t think of any other reason since exporting the game doesn’t have the same issue.
Hey sixrobin I just exported my project to exe to test out my project and when f3 is pressed twice to see performance moving my mouse causes extreme lag just as bad as it was before I upgraded my godot version especially when in full screen and moving mouse in circle.
Heres a video of what it looks like and if you could possibly try replicating it on the export because its worse then in debug maybe you didn’t notice it. (The fps is in the top right it won’t look laggy because its recording in 30fps)