コード例 #1
0
ファイル: Commands.cs プロジェクト: huangjk/uGameFramework
        protected void AddToWorkerThreadCommandHandler(AddToWorkerThreadCommand cmd)
        {
#if PERFORMANCE_TEST
            var ptest = Service.Performance.PerformanceTest.Get();
            ptest.Start("AddToWorkerThreadCommand");
#endif

            cmd.result = _service.AddToWorkerThread(cmd.act, cmd.onFinished, cmd.global);
#if PERFORMANCE_TEST
            // now stop the watches
            ptest.Stop("AddToWorkerThreadCommand");
#endif
        }
コード例 #2
0
 protected void AddToWorkerThreadCommandHandler(AddToWorkerThreadCommand cmd)
 {
     //Profiler.BeginSample("AddToWorkerThreadCommandHandler");
     cmd.result = _service.AddToWorkerThread(cmd.act, cmd.onFinished);
     //Profiler.EndSample();
 }