Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Only trigger render on device motion update. #10

Open
markst opened this issue Feb 26, 2014 · 1 comment
Open

Feature: Only trigger render on device motion update. #10

markst opened this issue Feb 26, 2014 · 1 comment

Comments

@markst
Copy link

markst commented Feb 26, 2014

Rather than creating a timer for rendering (or using GLKViewController timer) what if the CMMotionManager update triggered the next render loop?

@mayakraft
Copy link
Owner

Ahh.. I set out to merge the two, having read your suggestion a month ago, and did the exact opposite! I tied the both to the GLKViewController timer, probably because it was more intuitive in that moment, but I'm seeing a benefit to your suggested method is being able to remove the GLKView draw function. is this what you were thinking too?

Either way, great suggestion, I agree that both these functions can and should be tied to only 1 timer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants