Skip to content

perf(agc): write each skip report in one call and cap its request dumps - #165

Merged
boykopovar merged 1 commit into
boykopovar:mainfrom
MichonGoddijn231849:perf/skip-report-single-write
Sep 30, 2026
Merged

boykopovar merged 1 commit into
boykopovar:mainfrom
MichonGoddijn231849:perf/skip-report-single-write

Conversation

@MichonGoddijn231849

Copy link
Copy Markdown
Contributor

What

  • Each draw/dispatch skip report is built into one string and written with a single fwrite.
  • The RecompileRequest dumps stop after 8 per reason: APS5_SKIP_REQUEST_DUMPS sets the limit, -1 dumps all.

mingw's fprintf writes an unbuffered stderr one character at a time. GTA V skipped a few shaders every frame, and its graphics queue spent about 1 s per frame printing 17 KB request dumps, which gave 0.1 fps.

Tested

Windows 11 Pro, AMD Ryzen 5 7600 (6-core), NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.

  • GTA V (PPSA04264): 0.1 fps to about 1 fps in the Story Mode prologue.
  • libSceAgcDriver builds.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes. Written with Claude (Anthropic) under my direction; I reviewed and tested it.

mingw's fprintf writes an unbuffered stderr a character at a time: a title skipping many draws
spent seconds per frame printing 17 KB RecompileRequest dumps (GTA V ran at 0.1 fps). Reports are
built into one string and written once; dumps stop after 8 per reason (APS5_SKIP_REQUEST_DUMPS,
-1 for all).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the agc libSceAgc* label Sep 29, 2026
oneandonlydean added a commit to oneandonlydean/AnyPS5 that referenced this pull request Sep 30, 2026
@boykopovar
boykopovar merged commit f583d26 into boykopovar:main Sep 30, 2026
3 checks passed
@MichonGoddijn231849
MichonGoddijn231849 deleted the perf/skip-report-single-write branch October 9, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants