Open AirSurfer09 opened 11 months ago
Sample code : useFrame(100), runs the frame-loop max 100 fps depending on the client pc performance. lodash .throttle might be useful : https://www.geeksforgeeks.org/lodash--throttle-method/
something like:
useFrame(()=>{ // your callback }, { throttle: 100, priority: 0, })
cc @krispya this will need to be a documented pattern.
Sample code : useFrame(100), runs the frame-loop max 100 fps depending on the client pc performance. lodash .throttle might be useful : https://www.geeksforgeeks.org/lodash--throttle-method/