useRenderLoop used to be resume()d by default. resume() starts the loop, calling the users callbacks without the user needing to call resume themselves.
Since v4 the useRenderLoop is not started by default. This results in:
playgrounds/demos not working
a change in the behavior of existing user code
At the same time, useRenderLoop is no longer Tres' preferred way of looping. So it shouldn't consume resources unless necessary.
Solution
On the first call to useRenderLoop, resume the loop.
Problem
useRenderLoop
used to beresume()
d by default.resume()
starts the loop, calling the users callbacks without the user needing to callresume
themselves.Since
v4
theuseRenderLoop
is not started by default. This results in:At the same time,
useRenderLoop
is no longer Tres' preferred way of looping. So it shouldn't consume resources unless necessary.Solution
On the first call to
useRenderLoop
,resume
the loop.