Mouse Delta Issue

I am getting errant values when I read delta mouse. When I attempt to read the values it is alternating between unusually high values and very low values making the inputs very inconsistent.

Looking at the profile it seems to coincide with peak in editor loop execution time.


Unity: 2019.3.0b12
Input System Version: preview.3 - 1.0.0 (appears to be the most current)

Gif showing the issue

Code:

Input System Panel:

Use pooling for that kind of input, ie. get an InputActionReference to your mouse delta or position, and Read it’s value directly in Update. I’m getting much better results doing that !

Sorry for the stupid question. But can you give me some psuedo code of what you are talking about?

You declare a variable like : [SerializeField] private InputActionReference myActionReference;

Then in Update :

Vector2 myVar = myActionReference.action.ReadValue(); // the type being what your action is, float, vector2…

And then you simply use myVar