useRenderLoop().onLoop
ticks before the renderer can meaningfully render
#595
Labels
useRenderLoop().onLoop
ticks before the renderer can meaningfully render
#595
Describe the bug
Problem
useRenderLoop().onLoop
ticks before the renderer can meaningfully render.When
onLoop
is initially called, e.g.:These values change on the subsequent frame, making coding/debugging more difficult than necessary.
Solution
useRenderLoop()
should be dependent on thecontext
's renderer.onLoop
until the renderer is ready.Context
pause
immediately afteronLoop
doesn't do anything #251useRenderLoop
per page share state #252Reproduction
https://stackblitz.com/edit/tresjs-basic-t6zfd2?file=src%2Fcomponents%2FUseRenderer.vue
Steps to reproduce
See StackBlitz.
System Info
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: