-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render.calls
is always 0
#42
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
https://codesandbox.io/s/r3f-perf-issue-with-gl-0do0bm
I think this is because of the
gl.info.reset()
in https://github.com/utsuboco/r3f-perf/blob/main/src/components/PerfHeadless.tsx#L262Possible fix
Could we save
render.calls
andrender.triangles
in the store? In this way we don't break code which relies on that number.Possible workaround
I'm not sure though if this can cause some issue. Do
gl.render()
gets called twice in this way? Once foruseFrame(...,1)
and then foruseFrame(..., Infinity)
?r3f-perf/src/components/Graph.tsx
Lines 202 to 216 in 6497ade
The text was updated successfully, but these errors were encountered: