[SOLVED] How to stop rendering manually?

Hey guys, I want to emplement a funtion that stop rendering when the mouse left the game(mouse.disablePointerLock), is there an elegent way to achieve this? I tried to desabled the camera but the posteffects on the camera are causing some errors, so I am wonder if there is some other way.

Thanks in advance!!

What do you mean by ā€˜stop renderingā€™?

Are you looking for something like: https://api.playcanvas.com/classes/Engine.AppBase.html#autoRender

Read more here: https://developer.playcanvas.com/en/user-manual/optimization/guidelines/#graphics---cpu-and-gpu

2 Likes

Oh Yes! I want to reduce the applicationā€™s load on the CPU and GPU. Thank you yaustar!

link to ref is broken