Skip to content

fix(fps): respect disabled values for high-FPS diagnostics - #2581

Closed
JooaoPedro15 wants to merge 1 commit into
NotRexed:mainfrom
JooaoPedro15:fix/fps-log-env-switch
Closed

JooaoPedro15 wants to merge 1 commit into
NotRexed:mainfrom
JooaoPedro15:fix/fps-log-env-switch

Conversation

@JooaoPedro15

@JooaoPedro15 JooaoPedro15 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Closed as a duplicate of the earlier #2575, which applies the same environment-parser fix. This branch has passing fork CI, but maintaining two PRs for the same production change would duplicate review work.

Setting HOS_FPS_LOG=0 (or false, off, no, or an empty value) currently still enables the periodic high-FPS diagnostics. The presence-only check also fails the existing on/off environment source regression on both Windows and Linux.

Use the shared env_on() parser and document HOS_FPS_LOG=1 in the source comment. Preserve the atomic cache introduced by #2552. Add the reproduced CI failure to the scored worklist.

Validation:

  • Existing tests/test_env_on.py, tests/test_menu_env_on.py, and tests/test_high_fps_fixes.py pass locally.
  • Compiled the actual fps_log() function with Clang C11, -Wall -Wextra -Werror: current main passes 9/17 values; this change passes 17/17, checking two cached calls per process.
  • Full game-free Windows/Linux CI on the fork: https://github.com/JooaoPedro15/Hookshot/actions/runs/43124382924 (all six jobs passed: both Python shards on both OSes, SPIR-V fixtures, and workflow lint).
  • Ran the entire suite on macOS: 374 passed, 24 failed, 72 skipped. This environment has Python 3.9, Apple's older Bash, and lacks several optional tools/packages; failures include newer Python APIs, GNU shell/tool assumptions, and macOS temporary-path canonicalization. No dependencies installed.
  • git diff --check passes. No game run or GPU performance measurement was possible on this Mac.

Related baseline CI: https://github.com/NotRexed/Hookshot/actions/runs/43115711265. Rebased onto main after #2552 and #2562 merged; no dependency PR is included in this diff. Coordination is recorded in the worklist; I could not post in Discord from this environment.

Assisted-by: OpenAI Codex
Co-Authored-By: Codex noreply@openai.com

Use the shared on/off environment parser so HOS_FPS_LOG=0 and other disabled values do not enable periodic diagnostics. This also fixes the existing source regression check.

Assisted-by: OpenAI Codex
Co-Authored-By: Codex <noreply@openai.com>
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