Repository navigation
Switch: turn off the deko3d bring-up diagnostics - #18
Merged
Merged
Conversation
…every 300 frames) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks for the pull request! My local Dawn already had that flag off, so the patch file in the repo was just out of date, my bad lol, and this issue would also happen to anyone building Dawn from the patch. I'm going to try the rest of these on my Switch. |
Owner
|
Merged, thank you! As I said, the flag was already off in my local Dawn, so the patch file in the repo was just out of date thx!!! |
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.
On Switch the game freezes briefly every few seconds, even when it is otherwise holding 60 fps and no shaders are compiling.
The cause is
kDeko3dDiag, which is stilltruein the Dawn Switch patch (it is marked "TEMP bring-up"). With it on, every 300 framesSwapChain::PresentImplsetsmDebugDumpFrame. That frame,DebugDumpImageruns for every render pass and for the swapchain image: it waits for the GPU queue to go idle, copies the image back, walks every pixel on the CPU from uncached memory, and writes a line to stderr.txt. On top of that,ReportMemory("periodic")writes a memory report. stderr is unbuffered on the SD card, so all of this runs synchronously on the render path.This PR changes
kDeko3dDiagtofalse.DebugDumpImageandReportMemoryare still there for anyone bringing up the backend again.Tested on my Switch (Atmosphère, firmware 23.0.1) with a build from source of android-port at f15608e, playing original MKW and Retro Rewind 6.13.4. Before: about 3,000
[deko3d-frame]/[deko3d-mem]lines in stderr.txt in one session, and the regular freezes. After: neither.🤖 Generated with Claude Code