Skip to content

Fix frame-stats crash from unregistered lightGridPublish stage - #1

Open
Overhatch wants to merge 1 commit into
mainfrom
fix/light-grid-publish-stage
Open

Fix frame-stats crash from unregistered lightGridPublish stage#1
Overhatch wants to merge 1 commit into
mainfrom
fix/light-grid-publish-stage

Conversation

@Overhatch

Copy link
Copy Markdown
Owner

RtTerrain.stream times a terrain.lightGridPublish stage, but the name was never
added to Profile's pre-declared array. Profile.indexOf throws
IllegalArgumentException on an unknown name rather than ignoring it, so once
frame-stats.enabled is set, the first light-grid publish throws on the render
thread and drops RT back to vanilla wholesale. With frame stats off, count/stage
short-circuit before the lookup, which is why this never surfaced.

Audited every stage/endStage/count literal in the repo against the pre-declared
arrays; this was the only omission.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

RtTerrain.stream times a terrain.lightGridPublish stage, but the name was never
added to Profile's pre-declared array. Profile.indexOf throws
IllegalArgumentException on an unknown name rather than ignoring it, so once
frame-stats.enabled is set, the first light-grid publish throws on the render
thread and drops RT back to vanilla wholesale. With frame stats off, count/stage
short-circuit before the lookup, which is why this never surfaced.

Audited every stage/endStage/count literal in the repo against the pre-declared
arrays; this was the only omission.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.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