From f3bda05a251bf5fb80182d63b01a7116eb310354 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Sat, 28 Apr 2001 02:47:00 +0000 Subject: [PATCH] no pstats for opt4, fix unnecessary (buggy?) pstats call --- panda/src/wdxdisplay/wdxGraphicsWindow.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/panda/src/wdxdisplay/wdxGraphicsWindow.cxx b/panda/src/wdxdisplay/wdxGraphicsWindow.cxx index 60087ccc67..dd840bb638 100644 --- a/panda/src/wdxdisplay/wdxGraphicsWindow.cxx +++ b/panda/src/wdxdisplay/wdxGraphicsWindow.cxx @@ -16,7 +16,9 @@ #include #include +#ifdef DO_PSTATS #include +#endif #include "dxGraphicsStateGuardian.h" #include @@ -1313,8 +1315,6 @@ void wdxGraphicsWindow::show_frame(void) { // Description: timer info, incs frame # //////////////////////////////////////////////////////////////////// void wdxGraphicsWindow::end_frame(void) { - PStatTimer timer(_swap_pcollector); // added to mimic wglGraphicsWindow.cxx -// SwapBuffers(_hdc); GraphicsWindow::end_frame(); } @@ -1484,8 +1484,10 @@ void INLINE wdxGraphicsWindow::process_events(void) { // Description: //////////////////////////////////////////////////////////////////// void wdxGraphicsWindow::update(void) { +#ifdef DO_PSTATS _show_code_pcollector.stop(); PStatClient::main_tick(); +#endif // Always ask for a redisplay for now @@ -1507,7 +1509,9 @@ void wdxGraphicsWindow::update(void) { else if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) process_events(); */ +#ifdef DO_PSTATS _show_code_pcollector.start(); +#endif } ////////////////////////////////////////////////////////////////////