Bladeren bron

Add lru config variables for debugging textures and vertex buffers.

aignacio_sf 17 jaren geleden
bovenliggende
commit
0b012b4789
2 gewijzigde bestanden met toevoegingen van 11 en 1 verwijderingen
  1. 9 1
      panda/src/dxgsg9/config_dxgsg9.cxx
  2. 2 0
      panda/src/dxgsg9/config_dxgsg9.h

+ 9 - 1
panda/src/dxgsg9/config_dxgsg9.cxx

@@ -173,11 +173,19 @@ ConfigVariableInt dx_lru_maximum_page_updates_per_frame
 ConfigVariableBool dx_lru_debug
 ("dx-lru-debug", false);
 
-// valid only if dx_lru_debug == true && notify-level-dxgsg9 == debug
+// valid only if dx_lru_debug == true 
 // number of frames to wait until printing out the LRU status
 ConfigVariableInt dx_lru_debug_frames_til_output
 ("dx-lru-debug-frames-til-output", 500);
 
+// valid only if dx_lru_debug == true 
+ConfigVariableBool dx_lru_debug_textures
+("dx-lru-debug-textures", false);
+
+// valid only if dx_lru_debug == true 
+ConfigVariableBool dx_lru_debug_vertex_buffers
+("dx-lru-debug-vertex-buffers", false);
+
 ConfigVariableBool dx_use_dynamic_textures
 ("dx-use-dynamic-textures", true);
 

+ 2 - 0
panda/src/dxgsg9/config_dxgsg9.h

@@ -72,6 +72,8 @@ extern ConfigVariableInt dx_lru_maximum_page_updates_per_frame;
 // LRU debug variables
 extern ConfigVariableBool dx_lru_debug;
 extern ConfigVariableInt dx_lru_debug_frames_til_output;
+extern ConfigVariableBool dx_lru_debug_textures;
+extern ConfigVariableBool dx_lru_debug_vertex_buffers;
 
 extern ConfigVariableBool dx_use_dynamic_textures;