Beispiel #1
0
        protected void AddToMainThreadCommandHandler(AddToMainThreadCommand cmd)
        {
#if PERFORMANCE_TEST
            var ptest = Service.Performance.PerformanceTest.Get();
            ptest.Start("AddToMainThreadCommand");
#endif

            cmd.result = _service.AddToMainThread(cmd.act, cmd.global);
#if PERFORMANCE_TEST
            // now stop the watches
            ptest.Stop("AddToMainThreadCommand");
#endif
        }
Beispiel #2
0
 protected void AddToMainThreadCommandHandler(AddToMainThreadCommand cmd)
 {
     //Profiler.BeginSample("AddToMainThreadCommandHandler");
     cmd.result = _service.AddToMainThread(cmd.act);
     //Profiler.EndSample();
 }