Skip to content

Fix/#2722 preload#2723

Open
kvvasuu wants to merge 2 commits intopmndrs:v11-workingfrom
kvvasuu:fix/#2722-preload
Open

Fix/#2722 preload#2723
kvvasuu wants to merge 2 commits intopmndrs:v11-workingfrom
kvvasuu:fix/#2722-preload

Conversation

@kvvasuu
Copy link
Copy Markdown

@kvvasuu kvvasuu commented Apr 18, 2026

Why

Resolves #2722

<Preload /> has no visible effect — the scene loads and renders normally, but shader compilation stutter still occurs when the camera points at a new object for the first time.

What

⚠️ This implementation requires three.js r184 or later.

Updated the existing Preload component.

  • Replaced gl.compile() with renderer.compileAsync()- works on both WebGLRenderer and WebGPURenderer
  • Sets frustumCulled = false on all objects before compilation so off-screen objects are included
  • Adds an onDone callback that fires after compilation completes and state is restored

Checklist

  • Documentation updated
  • Ready to be merged

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 18, 2026

@kvvasuu is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

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