Skip to content

Station objective shown once; quieter hand diagnostics - #149

Merged
h0lybyte merged 1 commit into
mainfrom
perf/low-end
Nov 14, 2026
Merged

h0lybyte merged 1 commit into
mainfrom
perf/low-end

Conversation

@h0lybyte

Copy link
Copy Markdown
Owner

Follow-up to #148. I measured low-end performance in the web build with Chrome's CPU slowed 4× and no frame cap:

Scene fps median / p95 frame
Title 215 4.6 / 6.5 ms
Station 127-133 7.5-7.9 / 8.9-9.3 ms
Planet (on foot) 147 6.8 / 8.3 ms
Hold 186-203 4.8-5.3 / 6.7-7.1 ms
Defend, waves 1-2 (up to 60 monsters) 110-126 7.9-9.0 / 9.9-11 ms

The wasm heap is about 215-224 MB (the cap is 1024 MB). Monsters are already pooled. Nothing needs big perf work, so this PR is two small fixes:

  • Station objective shown twice: after a call, the page shows the objective top left (station.tsx), and the hint line repeated it. The hint line now shows it only before the page does (the start objective).
  • Hand diagnostics logged every 2 s while holding a gun: they made up most of the console output, and each log on the web captures a stack trace. They now print only when the grip is actually off (IK error > 5 mm, or fingers clipping into the gun).

Tested: web build, new game to the call; the objective shows once and no periodic [Hands] lines appear. ln.py tests 83/83, gen --check up to date.

- After a call the page shows the objective top left (station.tsx), so
  the hint line no longer repeats it.
- The every-2-s [Hands] IK / finger-clipping logs only print when the
  grip is actually off (each web log captures a stack trace).
@h0lybyte
h0lybyte merged commit 5a7a31c into main Nov 14, 2026
1 check passed
@h0lybyte
h0lybyte deleted the perf/low-end branch November 14, 2026 02:47
@h0lybyte h0lybyte mentioned this pull request Nov 14, 2026
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