We have a mouseMovedHandler for GCMouse that gets pointer delta updates (when the pointer is locked). This mostly works fine, but on occasion the handler will go through bouts of delayed updates - it will pause for a few seconds before receiving more updates, even though the hardware mouse pointer is being moved.
The rest of the app continues to be responsive (ie, the MTKView still pushes frames and the Metal frame rate is still smooth). It appears that something is blocking or delaying the GCMouseMoved events being sent by the System to the mouseMovedHandler.
Is there a way we can diagnose this specific delay?
Context: IOS App on Apple Silicon M1.
APIs: Metal, AVAudio (OGG), GCMouse, GCKeyboard