/*protected virtual void HandleOnAfterWaitingToPrepareRenderBuffer(int p_invalidCullingMask) * { * SetViewActive(SustainedPerformanceManager.IsCameraViewInvalid(this, p_invalidCullingMask)); * }*/ protected virtual void HandleOnAfterDrawBuffer(Dictionary <int, RenderTexture> p_renderBuffersDict) { if (m_useRenderBuffer && !SustainedPerformanceManager.IsCameraViewInvalid(this)) { var v_camera = Camera; if (v_camera != null) { v_camera.enabled = false; } } }
protected override void HandleOnSetHighPerformance(bool p_invalidateBuffer) { var v_isViewActive = (p_invalidateBuffer || SustainedPerformanceManager.RequiresConstantBufferRepaint) && SustainedPerformanceManager.IsCameraViewInvalid(this); if (!v_isViewActive) { v_isViewActive = !m_useRenderBuffer; } SetViewActive(v_isViewActive); }
protected override void HandleOnSetLowPerformance() { SetViewActive(SustainedPerformanceManager.RequiresConstantBufferRepaint && SustainedPerformanceManager.IsCameraViewInvalid(this)); }