2020.1.2f EditorLoop Application.Message Lag Spikes

The editor in 2020.1.2f creates huge lag spikes when moving the mouse, even in a completely blank project created with the 2D template. Profiling the editor shows that Application.Message is causing the lag, with Application.Message.MouseMove also creating random spikes. The attached profiler screenshots are from a blank project created with the 2D project template.


This capture highlights Application.Message


This capture hightlights Application.Message.MouseMove

This lag is so bad the editor is nearly unusable. A fix would be greatly appreciated.

1 Like

Have the same problem. Could you fix it?

It has something to do with your canvas EventSystem & Standalone Input components. If it’s anything the same as my problem, next will be trying to figure out why the application.tick ms is so high. Something to do with repainting scenes.

I was wondering why I had the same problem with my project on PC but not on my laptop.
Application.Message appeared randomly and caused lag for a few seconds.
I don’t know why, but I solved the problem by removing a Fat32 USB stick from my system.
Maybe Unity checks for new input controllers and gets in conflict with the different file format.

I have this problem right now and I figured it out. I am out of RAM. Just open Task manager to see how much RAM is Unity using. Mine is 99%.

FWIW mine was due to a faulty USB camera, it kept connecting and disconnecting. Every time a USB device tries to connect, it appears the unity input system tries to register it.

Still occurs in 2022.3.17 with my Razer Basilisk Ultimate (mouse) on Windows.

When moving the mouse in the editor, in any view, there are lag spikes in the Editor loop due to this message.

If I reduce the polling rate, the CPU load is much lower so it runs better, but a low polling rate (125Hz) is not good.

The scene and game views are basically unusable when moving my mouse unless I reduce the polling rate.