コード例 #1
0
 private static void OneSecond(double timelapse)
 {
     Performance.FrameCountLastSecond = Performance.frames;
     Performance.frames             = 0;
     Performance.MemoryUsage        = (Performance.GetMemoryUsage != null ? Performance.GetMemoryUsage() : (int)(GC.GetTotalMemory(false) / (long)1024 / (long)1024));
     Performance.GarbageCollections = (Performance.GetGarbageCollections != null ? Performance.GetGarbageCollections() : GC.CollectionCount(0));
     Performance.UpdateFrameBuckets();
 }
 public void Update()
 {
     Performance.Frame();
     Feedback.Frame();
     Threading.RunQueuedFunctionsOnMainThread();
 }