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

Migrate samples off ALooper_pollAll. #1009

Merged
merged 2 commits into from
May 3, 2024
Merged

Conversation

DanAlbert
Copy link
Member

@DanAlbert DanAlbert commented May 3, 2024

There's a fair amount of absurd stuff left around the code I touched. Some samples have a lot of code dedicated to managing sensors that then do nothing with the sensors, some display a static image but have a render "loop", all of these have a nearly identical main loop but don't share any code, etc. I'll be back.

The only one left is the vulkan sample. That one crashed when I did the
trivial thing, so I'm leaving it for last.

There's a fair amount of absurd stuff left around the code I touched.
Some samples have a lot of code dedicated to managing sensors that then
do nothing with the sensors, some display a static image but have a
render "loop", all of these have a nearly identical main loop but don't
share any code, etc. I'll be back.
@DanAlbert DanAlbert requested review from jreck and enh-google May 3, 2024 20:03
@DanAlbert DanAlbert enabled auto-merge (rebase) May 3, 2024 20:03
The problem was the missing `canRender` check around the render call,
causing the app to being rendering before the window was ready if it got
that far before processing all the pending events.
@DanAlbert DanAlbert changed the title Migrate most samples off ALooper_pollAll. Migrate samples off ALooper_pollAll. May 3, 2024
@DanAlbert DanAlbert merged commit 9ae3781 into android:main May 3, 2024
2 checks passed
@DanAlbert DanAlbert deleted the more-pollall branch May 3, 2024 20:55
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

Successfully merging this pull request may close these issues.

2 participants