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

fix FrameSkipper #8110

Merged
merged 2 commits into from
Sep 10, 2024
Merged

fix FrameSkipper #8110

merged 2 commits into from
Sep 10, 2024

Conversation

pixelflinger
Copy link
Collaborator

FrameSkipper was recently broken because of a typo resulting in the frame latency being always 3 instead of the default of 2.

This change also makes the maximum latency 2 instead of 3, because on ANDROID, 3 can cause CPU throttling at seemingly random places on the GL thread.

FrameSkipper was recently broken because of a typo resulting in 
the frame latency being always 3 instead of the default of 2.

This change also makes the maximum latency 2 instead of 3, because on
ANDROID, 3 can cause CPU throttling at seemingly random places on the
GL thread.
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Sep 9, 2024
@pixelflinger pixelflinger enabled auto-merge (rebase) September 9, 2024 05:07
static constexpr size_t MAX_FRAME_LATENCY = 3;
/*
* The maximum frame latency acceptable on ANDROID is 2 because higher latencies will be
* throttled anyway is BufferQueueProducer::dequeueBuffer(), because ANDROID is generally
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"throttled away in" ?

@pixelflinger pixelflinger merged commit 684d441 into main Sep 10, 2024
10 checks passed
@pixelflinger pixelflinger deleted the ma/frameskipper branch September 10, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants