GamePad response slowly in iPadOS app running on M1 Mac

I connected the native PS4/Xbox joystick to my M1 MacBook to test my iPad Game, choose "My Mac (Designed for iPad)" and run it via xcode/ archive and install it as an mac app.

But the joystick buttons response very slowly and have large delay (detect input via GCController.extendedGamepad.valueChangedHanlder).

The same code runs property if I build the app to iPad and connect the same joystick.

My app CPU Percentage Used is over 100%, is it relative to this question?

Hi SaltyLeung

Please capture a spindump [1] while the CPU usage is at 100%. You can post the spindump file here (if you are comfortable doing so), or submit a feedback report with the spindump file attached and post the feedback ID.

[1] Open Terminal. Enter sudo spindump. The spindump command will run for a bit and save a file to /tmp/spindump.txt. Please make sure you are reproducing the issue (CPU usage at 100%) while the spindump command runs.

Hi, here is the feedback ID, FB11663176 (FB11663146 uploading was not completed).

GamePad response slowly in iPadOS app running on M1 Mac
 
 
Q