Browse Source

move Swap Buffers to top of PStats list

David Rose 24 years ago
parent
commit
438f5f0aed
2 changed files with 3 additions and 3 deletions
  1. 1 1
      panda/src/display/graphicsWindow.cxx
  2. 2 2
      panda/src/pstatclient/pStatProperties.cxx

+ 1 - 1
panda/src/display/graphicsWindow.cxx

@@ -37,7 +37,7 @@ GraphicsWindow::WindowFactory *GraphicsWindow::_factory = NULL;
 #ifndef CPPPARSER
 PStatCollector GraphicsWindow::_app_pcollector("App");
 PStatCollector GraphicsWindow::_show_code_pcollector("App:Show code");
-PStatCollector GraphicsWindow::_swap_pcollector("Draw:Swap buffers");
+PStatCollector GraphicsWindow::_swap_pcollector("Swap buffers");
 PStatCollector GraphicsWindow::_clear_pcollector("Draw:Clear");
 PStatCollector GraphicsWindow::_show_fps_pcollector("Draw:Show fps");
 PStatCollector GraphicsWindow::_make_current_pcollector("Draw:Make current");

+ 2 - 2
panda/src/pstatclient/pStatProperties.cxx

@@ -104,7 +104,8 @@ struct LevelCollectorProperties {
 };
 
 static TimeCollectorProperties time_properties[] = {
-  { 1, "App",                              { 0.0, 1.0, 1.0 },  1.0 / 30.0 },
+  { 1, "Swap buffers",                     { 0.5, 1.0, 0.8 } },
+  { 1, "App",                              { 0.0, 0.8, 0.4 },  1.0 / 30.0 },
   { 1, "App:Animation",                    { 1.0, 0.0, 1.0 } },
   { 1, "App:Collisions",                   { 1.0, 0.5, 0.0 } },
   { 0, "App:Data graph",                   { 0.5, 0.8, 0.4 } },
@@ -133,7 +134,6 @@ static TimeCollectorProperties time_properties[] = {
   { 1, "Draw:Quick",                       { 1.0, 0.0, 0.8 } },
   { 1, "Draw:Direct",                      { 0.0, 0.4, 1.0 } },
   { 1, "Draw:Cull",                        { 0.4, 1.0, 0.0 } },
-  { 1, "Draw:Swap buffers",                { 0.5, 1.0, 0.8 } },
   { 0, "Draw:Clear",                       { 0.5, 0.7, 0.7 } },
   { 0, "Draw:Show fps",                    { 0.5, 0.8, 1.0 } },
   { 0, "Draw:Make current",                { 1.0, 0.6, 0.3 } },