I have very simple scene with react three fiber (react three cannon for physics). it has two draw calls and using mesh basic maetrial but when I open my task manager it shows really high consumption on both cpu and gpu. I suspect cpu consumption due to cannon since it must be doing calculation cpu but it really confusing to see gpu consumption for such a simple scene.
Yeah, I am not sure why it consuming so much cpu memory. Even physics calculation shouldn’t take that much of memory and it’s seems really arbitrary cause it’s shows different stats in different devices which is making it even hard to pin point the problem.
Also thanks for checking.
you can see in dev tools what consumes what. it’s usually the best to just profile it. go to the performance tab and record a few seconds, then look cause what’s causing it.
locally i see nothing, it’s tame, no cpu tasks that cause any amount of stress, just three’s render loop chugging along with some onworker messages.
btw there’s also p2 (3d physics), which might be faster since it has a lot less to calculate. it works almost in the same way, you just exchange a few hooks.
webgl imo is hit and miss on some machines. my last two macbooks just couldn’t run anything without heat and throttling. the one i have now runs webgl without problems.
oh okay. both cpu and gpu consumption drops by great amount when the canvas size is really small. I wonder if I can use that if I know that it doing too much of consumption?