Browse Source

Fixed framerate counter averaging buffer size (shouldn't have been included in previous commit)

ocornut 10 năm trước cách đây
mục cha
commit
10b4fa44c1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -1314,7 +1314,7 @@ struct ImGuiState
     int                     LogAutoExpandMaxDepth;
 
     // Misc
-    float                   FramerateSecPerFrame[10];          // calculate estimate of framerate for user
+    float                   FramerateSecPerFrame[120];          // calculate estimate of framerate for user
     int                     FramerateSecPerFrameIdx;
     float                   FramerateSecPerFrameAccum;
     char                    TempBuffer[1024*3+1];               // temporary text buffer