'Not-render'-function while 'Not-in-cam-sight'


#1

Hello - I have been noticing that I still get lag-performance-issues when through out my scene despite the camera should not be rendering heavy stuff in sight.
As such heavy stuff outside of view is still being rendered/calculated (and I have to make these things invisible - dis-enable them).
Is there or can you make a function like: ‘Not-render’ while ‘Not-in-cam-sight’?


#2

Engine can do that automatically if you enable the Frustum Culling property in your camera:
https://developer.playcanvas.com/en/api/pc.CameraComponent.html#frustumCulling

Enable the Profiler and watch how the polygon count changes when models get visible/not visible.


#3

Thanks it works quite well