From 0b012b47893f7d97d5fcb2fdf3b77fae65eabbeb Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Thu, 8 May 2008 23:33:20 +0000 Subject: [PATCH] Add lru config variables for debugging textures and vertex buffers. --- panda/src/dxgsg9/config_dxgsg9.cxx | 10 +++++++++- panda/src/dxgsg9/config_dxgsg9.h | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/panda/src/dxgsg9/config_dxgsg9.cxx b/panda/src/dxgsg9/config_dxgsg9.cxx index b662ba5a8e..3acf965413 100755 --- a/panda/src/dxgsg9/config_dxgsg9.cxx +++ b/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); diff --git a/panda/src/dxgsg9/config_dxgsg9.h b/panda/src/dxgsg9/config_dxgsg9.h index eb80f9b42f..abf823e53e 100755 --- a/panda/src/dxgsg9/config_dxgsg9.h +++ b/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;