Repository navigation
Android: log the window surface retry once per trip to the background - #778
Merged
Merged
Conversation
While the app was in the background the swapchain rebuild tried to make the window surface every frame and logged each failure: about 60 lines a second on a Retroid Pocket 5 (700 lines in a few seconds at the home screen). Now the first failure is logged, and the return says how many tries there were. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While the app was in the background, the swapchain rebuild tried to make the window surface every frame and logged each failure. On a Retroid Pocket 5 that was about 60 lines a second (700 lines in a few seconds at the home screen), which bloats lasrecomp.log over a long stay away. The retry spam has been there since e781b0b.
Now the first failure is logged, and the return logs how many tries there were.
Tested on the Retroid Pocket 5 with a muted test copy, sent to the home screen twice: one "no window surface yet" line, then "window surface made again" on return. The #769 background save line still appears each time, and the game resumes in the same process.
🤖 Generated with Claude Code