Browse Source

*** empty log message ***

David Rose 24 years ago
parent
commit
cd8b15642c

+ 2 - 10
panda/src/glxdisplay/glxGraphicsWindow.cxx

@@ -14,9 +14,7 @@
 #include <keyboardButton.h>
 #include <keyboardButton.h>
 #include <mouseButton.h>
 #include <mouseButton.h>
 #include <glGraphicsStateGuardian.h>
 #include <glGraphicsStateGuardian.h>
-#ifdef DO_PSTAT
 #include <pStatTimer.h>
 #include <pStatTimer.h>
-#endif /* DO_PSTAT */
 #include <clockObject.h>
 #include <clockObject.h>
 
 
 #include <errno.h>
 #include <errno.h>
@@ -664,9 +662,7 @@ void glxGraphicsWindow::end_frame( void )
   }
   }
 
 
   {
   {
-#ifdef DO_PSTAT
     PStatTimer timer(_swap_pcollector);
     PStatTimer timer(_swap_pcollector);
-#endif /* DO_PSTAT */
     glXSwapBuffers(_display, _xwindow);
     glXSwapBuffers(_display, _xwindow);
   }
   }
 
 
@@ -1279,10 +1275,9 @@ supports_update() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void glxGraphicsWindow::update(void)
 void glxGraphicsWindow::update(void)
 {
 {
-#ifdef DO_PSTAT
   _show_code_pcollector.stop();
   _show_code_pcollector.stop();
+
   PStatClient::main_tick();
   PStatClient::main_tick();
-#endif /* DO_PSTAT */
 
 
   if (_change_mask)
   if (_change_mask)
     handle_changes();
     handle_changes();
@@ -1296,9 +1291,8 @@ void glxGraphicsWindow::update(void)
     idle_wait();
     idle_wait();
   else
   else
     process_events();
     process_events();
-#ifdef DO_PSTAT
+
   _show_code_pcollector.start();
   _show_code_pcollector.start();
-#endif /* DO_PSTAT */
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -1386,9 +1380,7 @@ void glxGraphicsWindow::enable_mouse_entry(bool val)
 //  Description:
 //  Description:
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void glxGraphicsWindow::make_current(void) {
 void glxGraphicsWindow::make_current(void) {
-#ifdef DO_PSTAT
   PStatTimer timer(_make_current_pcollector);
   PStatTimer timer(_make_current_pcollector);
-#endif /* DO_PSTAT */
   glXMakeCurrent(_display, _xwindow, _context);
   glXMakeCurrent(_display, _xwindow, _context);
 }
 }
 
 

+ 0 - 2
panda/src/glxdisplay/glxGraphicsWindow.h

@@ -12,9 +12,7 @@
 #include <pandabase.h>
 #include <pandabase.h>
 
 
 #include <graphicsWindow.h>
 #include <graphicsWindow.h>
-#ifdef DO_PSTATS
 #include <pStatCollector.h>
 #include <pStatCollector.h>
-#endif /* DO_PSTATS */
 
 
 #include <X11/Xlib.h>
 #include <X11/Xlib.h>
 #include <GL/glx.h>
 #include <GL/glx.h>