protected override void OnUpdate()
        {
            if (!SceneService.AreStartupScenesLoaded(World))
            {
                return;
            }
#if DEBUG
            var countEntsStart = GetNumEntities();
#endif
            Entity eMainView = FindMainViewNode();
            if (eMainView == Entity.Null)
            {
                // we only build a default graph if there are no existing nodes - otherwise assume they are already built
                RenderDebug.Log("Auto building default render graph");
                eMainView = BuildDefaultRenderGraph(1920, 1080);
            }

            // build light nodes for lights that have no node associated
            BuildAllLightNodes(eMainView);

#if DEBUG
            var countEntsEnd = GetNumEntities();
            if (countEntsEnd != countEntsStart)
            {
                RenderDebug.LogFormatAlways("Render graph builder added entities (was {0}, now {1})", countEntsStart, countEntsEnd);
            }
#endif
            //Disable Render graph builder system. We need to create it only once
            Enabled = false;
        }