Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

[IOS] Accelerometer not responding #305

Closed
kjpou1 opened this issue Sep 10, 2015 · 1 comment
Closed

[IOS] Accelerometer not responding #305

kjpou1 opened this issue Sep 10, 2015 · 1 comment

Comments

@kjpou1
Copy link
Contributor

kjpou1 commented Sep 10, 2015

There seems to be a buffering problem with the accelerometer interface as it takes a while for the accelerometer values to respond to the actual movement of the device.

@kjpou1 kjpou1 added the iOS label Sep 10, 2015
@kjpou1
Copy link
Contributor Author

kjpou1 commented Sep 11, 2015

This is confirmed as a bug. The problem is that in MonoGame the implementation for Accelerometer uses the Core Motion pulling methodology that handles motion updates at specified intervals using a Queue. This is what creates the perceived buffering effect and non reactiveness to tilt movements. Handling accelerometer data this way introduces additional overhead. In the Core Motion Management documentation provided by apple most game apps are interested only the latest sample of motion data when they render a frame so should use the polling method which provides a periodic sampling of motion data.

Reference Core Motion Management documentation: https://developer.apple.com/library/ios/documentation/CoreMotion/Reference/CMMotionManager_Class/index.html#//apple_ref/occ/cl/CMMotionManager

@kjpou1 kjpou1 added the bug label Sep 11, 2015
@kjpou1 kjpou1 closed this as completed in ade7374 Sep 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant