From 438f5f0aedd67ab834942d881be5f6850a86003f Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 10 Aug 2001 00:31:14 +0000 Subject: [PATCH] move Swap Buffers to top of PStats list --- panda/src/display/graphicsWindow.cxx | 2 +- panda/src/pstatclient/pStatProperties.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/display/graphicsWindow.cxx b/panda/src/display/graphicsWindow.cxx index 0147cffd92..eba1863830 100644 --- a/panda/src/display/graphicsWindow.cxx +++ b/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"); diff --git a/panda/src/pstatclient/pStatProperties.cxx b/panda/src/pstatclient/pStatProperties.cxx index b8e3cc947d..83a10c4c6e 100644 --- a/panda/src/pstatclient/pStatProperties.cxx +++ b/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 } },