public MainLoop_RenderAndUpdateBeside(GraphicsCore core, EngineMainLoop mainLoop)
        {
            _core     = core;
            _mainLoop = mainLoop;

            _invalidRenderLoops = new ConcurrentQueue <RenderLoop>();
            _perfSceneUpdateBesideActivityNames = new List <string>(16);
            _perfDeviceRenderActivityNames      = new List <string>(16);

            _actionTriggerRenderOrUpdateBesideTask = this.TriggerRenderOrUpdateBesideTask;
        }
Esempio n. 2
0
        public MainLoop_UpdateAndPrepareRendering(GraphicsCore core, EngineMainLoop mainLoop)
        {
            _core     = core;
            _mainLoop = mainLoop;
            _perfSceneUpdateActivityNames = new List <string>(16);
            _exceptionsDuringUpdate       = new ConcurrentQueue <Exception>();

            _additionalContinuationActions     = new List <Action>(6);
            _additionalContinuationActionsLock = new object();

            _prepareRenderTasks = new List <Task <List <Action>?> >(16);

            _actionUpdateSingleScene = this.UpdateSingleScene;
        }