Skip to content

Android: log the window surface retry once per trip to the background - #778

Merged
peiikai merged 1 commit into
beta_6from
fix-bg-surface-log
Nov 13, 2026
Merged

peiikai merged 1 commit into
beta_6from
fix-bg-surface-log

Conversation

@peiikai

@peiikai peiikai commented Nov 13, 2026

Copy link
Copy Markdown
Owner

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

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>
@peiikai
peiikai merged commit 1c1cad2 into beta_6 Nov 13, 2026
8 checks passed
@peiikai
peiikai deleted the fix-bg-surface-log branch November 13, 2026 22:16
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.

1 participant