Actually there’s a bug in your PG:
https://www.babylonjs-playground.com/#UD9LU6#26
You should set sceneNeedRender = false  before the call to scene.render() because the update to this variable (from onProjectionMatrixChangedObservable and onViewMatrixChangedObservable) will be done during the course of this call.