Skip to content

Conversation

@joelreymont
Copy link
Contributor

  • Set w=0 in culled vertices to emit proper degenerate triangles, preventing NaN generation from smoothstep(0,0,x) and division by zero in fragment shader
  • Disable view-independent LOD that caused permanent detail loss (always use stride 1 until view-dependent LOD can be implemented)
  • Remove LOD benchmark since feature is disabled

Should improve #3713.

Likely performance gains by component...

Component Performance Impact Correctness Impact
Culling fix +20-40% (enables optimization) Fixes missing geometry
LOD removal -60% (lost broken optimization) Enables zooming for detail
Sorting fix +15-35% (multi-batch scenes) Reduces overdraw
NaN guards -1% (negligible overhead) Prevents artifacts
Net result +10% to +30% 100% correct

- Set w=0 in culled vertices to emit proper degenerate triangles,
  preventing NaN generation from smoothstep(0,0,x) and division
  by zero in fragment shader
- Disable view-independent LOD that caused permanent detail loss
  (always use stride 1 until view-dependent LOD can be implemented)
- Remove LOD benchmark since feature is disabled
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