Adding monitoring for (approximate) VRAM used by textures. The information is current...
authorMitchell Stokes <mogurijin@gmail.com>
Wed, 17 Nov 2010 05:28:25 +0000 (05:28 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Wed, 17 Nov 2010 05:28:25 +0000 (05:28 +0000)
commit1bb98b41944dadf69645cf3b99bcabd9834f9240
tree5c700ba234517211190bf7865c0ee7a353475b94
parentf791d74f102dcfed69a95d605e3c634f76a070ab
Adding monitoring for (approximate) VRAM used by textures. The information is currently only used in the profiling data of the BGE.

Here is a image of it in action:
http://www.pasteall.org/pic/show.php?id=6351

What it monitors:
  * VRAM used by textures created via bf_gpu and BL_Textures

What it does not monitor:
  * VRAM used by the Blender ui
  * VRAM used by 2d filters
  * VRAM allocated by the user via KX_Scene.pre_draw and KX_Scene.pre_draw
source/blender/gpu/GPU_extensions.h
source/blender/gpu/intern/gpu_draw.c
source/blender/gpu/intern/gpu_extensions.c
source/gameengine/Ketsji/BL_Texture.cpp
source/gameengine/Ketsji/BL_Texture.h
source/gameengine/Ketsji/KX_KetsjiEngine.cpp