-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BeginFrame throttling logic (round 2).
This is another attempt at fixing the issue addressed here: https://chromium-review.googlesource.com/c/chromium/src/+/3936368 That fix works for a throttled frame rate of 30Hz, but does not work for 20Hz. Why: 20Hz yields a frame interval of exactly 50000 us, which is already a multiple of 100 microseconds (so the flooring in that solution doesn't apply). On a 60Hz display, three frames span 16666 us * 3 = 49998 us, which is less than 50000 us. Ultimately, the third frame in the sequence gets throttled incorrectly, yielding a frame rate of 1 / (16666us * 4) = 15Hz instead of 20Hz. Bug: b:249539848 Change-Id: Iaf7815b2e49622388bef8260a01ef42d9523a629 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3994188 Reviewed-by: Jonathan Ross <jonross@chromium.org> Reviewed-by: Anthony Vallée-Dubois <anthonyvd@chromium.org> Commit-Queue: Eric Sum <esum@google.com> Cr-Commit-Position: refs/heads/main@{#1067335}
- Loading branch information
Showing
4 changed files
with
132 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters