Camera Jitter when mouse moved, but mouse not connected to anything.

Using 2018.3.0f2

I am getting a camera jitter issue when the mouse is moved, the cursor is locked.

The mouse is not connected to any inputs in the game.

I have walked back everything and completely disconnected the mouse input from the character controller and I am getting a “hiccup” in the render that looks like some sort of cpu/gpu bounding but there are no load spikes in profiler nor is there any FPS drop.

Anytime I move the mouse I get jitter even though the mouse input is not connected to anything. I have the camera rotating with a simple rotation script not connected to mouse input. when i move the mouse I get jitter in the camera, but appears to not be related to render and can’t possibly be related to the transform movement.

Any ideas what could cause jitter with mouse movement when the mouse input is not connected to anything in the thread would be appreciated.

Thanks

Are you sure it’s not setup in the axis input panel in a weird way?

post all related code

I have renamed the mouse axis just to see if it would throw errors to see if there were any other script accessing the mouse X/Y axis input in the thread and there isn’t.

The mouse input is definitely not connected to any script in the thread and yet anytime I move the mouse I get camera jitter.

This has to be some sort of internal engine bug or glitch in 2018?

There is no related code.

The mouse input is completely removed from anything in the thread. There is no code using mouse input.

I have renamed the axis just for that purpose. The issue it appears has something to do internally with how unity is accessing the mouse driver, perhaps?

I dunno about that, still on 2017 myself.

If you open a new project and a blank scene do you still get the hiccups?
try looking at the profiler to see if it says anything

edit: maybe another app is open on your system and it takes up cpu when you move the mouse?

Yah, I’ve done that. Nothing visible to indicate a problem in profiler. I’ve spent hours hunting down this issue in the profiler and I know for a fact the issue is not related to scripting or rendering.

What I know for certain is mouse movement is causing it even without the mouse input connected to anything in the build.

I could make a video and upload it to my youtube channel to show the issue.

Video is uploading (be one hour), no I have beast machine and nothing else is using the mouse besides windows.

I guess in the meatime ill setup an empty project and see if I can repoduce this issue.

I setup a blank scene in my current project with nothing but a camera and rotation script and I am able to reproduce the jitter issue.

I suppose I will try a blank project now to see if this is isolated to my Game project or the unity build.

Also don’t have any extra packages installed, it’s a barebones build.

I suppose the next step after that will be to setup in an earlier build.

What a time sink… bleh.

Confirmed that issue is present in a blank project on my machine. Nothing in the scene but auto move and rotate (from standard assets) and a camera.

When i move the mouse get instant jitter in camera render.

I can’t be the only person in the world experiencing this game killing issue. :frowning:

Updating my mouse/video drivers. Fingers Crossed.

I’d file a bug report with your system specs attached.

Did you test this with a pre-2018 version?

Just updated my mouse and video driver… was an update available. Going to restart, if it’s still there then ill test in a previous version of unity.

Woot, issue resolved with driver updates. Must have been a driver issue. Though the nvidia driver I had installed was the previous release so it wasn’t that old.

My G602 mouse driver had an update last October and it was a fairly old driver.

Now I can finally get back to work and stop chasing my tail.

The funny thing is that I did some nice optimizations of my build trying to fix this.

I learned that shadow cascades causes the camera to render for each cascade which is stupid. Better to remove cascading altogether than suffer the performance hit of rending 5 layered cameras 4 times.

1 Like