Skip to content

Optimize GLTF instancing and outline rendering hot paths.#24

Open
RZDESIGN wants to merge 1 commit intohytopiagg:mainfrom
RZDESIGN:perf/gltf-outline-hotpath
Open

Optimize GLTF instancing and outline rendering hot paths.#24
RZDESIGN wants to merge 1 commit intohytopiagg:mainfrom
RZDESIGN:perf/gltf-outline-hotpath

Conversation

@RZDESIGN
Copy link
Copy Markdown

@RZDESIGN RZDESIGN commented Mar 5, 2026

Reduce per-frame instance attribute uploads and scene churn, cache dynamic entity iteration, and prebuild outline mask material variants while skipping outline prep when no targets exist.

Reduce per-frame instance attribute uploads and scene churn, cache dynamic entity iteration, and prebuild outline mask material variants while skipping outline prep when no targets exist.

Made-with: Cursor
@RZDESIGN
Copy link
Copy Markdown
Author

RZDESIGN commented Mar 5, 2026

Reviewer checklist for this PR (GLTF/outline/entity hot paths):

  • Validate instancing updates under movement/animation-heavy scenes: confirm reduced hitches and no stale instance data from dirty-range uploads.
  • Validate transparent overlap quality: projected-depth sorting should improve ordering while remaining stable with throttled sort cadence.
  • Validate outline rendering: no visual regressions for map/alphaMap combinations; ensure no extra work occurs when there are no outline targets.
  • Validate entity update behavior: cached dynamic-entity iteration should preserve previous gameplay-visible update ordering.

Potential behavior change to confirm:

  • Environmental entities inferred as StaticEntity remain non-removable/non-dynamic; verify this inference matches expected gameplay/server semantics.

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