[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://developer.playcanvas.com/api/pc.Application.html#autoRender

Read more here: Optimization Guidelines | Learn PlayCanvas

2 Likes

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