示例#1
0
        private void ResumeSystemThreads()
        {
            ThreadRender.StartThread("Render", null);
            ThreadLogic.StartThread("Logic", null);
            ThreadAsync.StartThread("AsyncIO", null);
            ThreadPhysics.StartThread("Physics", null);
            if (CIPlatform.Instance.PlayMode != CIPlatform.enPlayMode.Game)
                ThreadAsyncEditor.StartThread("AsyncEditor", null);

            EventPoster.StartPools(Desc.ThreadPoolCount);
        }
示例#2
0
        private void PauseSystemThreads()
        {
            ThreadRender.StopThread(null);
            ThreadLogic.StopThread(null);
            ThreadAsync.StopThread(null);
            ThreadPhysics.StopThread(null);
            if (CIPlatform.Instance.PlayMode != CIPlatform.enPlayMode.Game)
                ThreadAsyncEditor.StopThread(null);

            EventPoster.StopPools();
        }
示例#3
0
        private void StopSystemThreads()
        {
            //CEngine.Instance.ThreadMain.FrameBegin();

            ThreadRender.StopThread(null);
            ThreadLogic.StopThread(null);
            ThreadAsync.StopThread(null);
            ThreadPhysics.StopThread(null);
            if (CIPlatform.Instance.PlayMode != CIPlatform.enPlayMode.Game)
            {
                ThreadAsyncEditor.StopThread(null);
                ThreadAsyncEditorSlow.StopThread(null);
            }

            EventPoster.StopPools();
        }
示例#4
0
        private void StartSystemThreads()
        {
            ThreadRHI.FromCurrent("RHI");
            ThreadMain.FromCurrent("Main");
            ThreadEditor.FromCurrent("Editor");

            ThreadLogic.StartThread("Logic", null);
            ThreadRender.StartThread("Render", null);
            ThreadAsync.StartThread("AsyncIO", null);
            ThreadPhysics.StartThread("Physics", null);

            if (CIPlatform.Instance.PlayMode != CIPlatform.enPlayMode.Game)
            {
                ThreadAsyncEditor.StartThread("AsyncEditor", null);
                ThreadAsyncEditorSlow.StartThread("AsyncEditorSlow", null);
            }

            EventPoster.StartPools(Desc.ThreadPoolCount);
        }