ソースを参照

Add a config option for the management of textures with DirectX management.

aignacio_sf 19 年 前
コミット
34c5a2fc6c
2 ファイル変更7 行追加0 行削除
  1. 6 0
      panda/src/dxgsg9/config_dxgsg9.cxx
  2. 1 0
      panda/src/dxgsg9/config_dxgsg9.h

+ 6 - 0
panda/src/dxgsg9/config_dxgsg9.cxx

@@ -135,6 +135,12 @@ ConfigVariableBool link_tristrips
 ConfigVariableBool dx_management
 ("dx-management", true);
 
+// valid only if dx_management == false
+// true = use DirectX management of texture memory
+// false = lru will manage texture memory
+ConfigVariableBool dx_texture_management
+("dx-texture-management", true);
+
 // valid only if dx_management == false
 // true = enable LRU management of video memory
 // false = no video memory management

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

@@ -62,6 +62,7 @@ extern ConfigVariableBool dx_debug_view_mipmaps;
 
 // LRU configuration variables
 extern ConfigVariableBool dx_management;
+extern ConfigVariableBool dx_texture_management;
 extern ConfigVariableBool dx_lru_management;
 extern ConfigVariableInt dx_lru_maximum_pages;
 extern ConfigVariableInt dx_lru_free_memory_requirement;