Add debug option --debug-gpumem to show GPU memory used in status bar.
authorAntony Riakiotakis <kalast@gmail.com>
Fri, 24 Apr 2015 12:11:05 +0000 (14:11 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Fri, 24 Apr 2015 12:11:21 +0000 (14:11 +0200)
commit80d75cb3e45fe10904b887e04481761dc458c876
tree67fc62e0efcfa4049a66a3f63162eff3354e0ae8
parentc2f861453e3eb9e3cbb7840066fc074e015dfc87
Add debug option --debug-gpumem to show GPU memory used in status bar.

Only used in ATIs and NVIDIAs. Used extensions are:

https://www.opengl.org/registry/specs/ATI/meminfo.txt
http://developer.download.nvidia.com/opengl/specs/

If you read the documentation, the numbers are not supposed to be exact
and also depend on the time when the call is made. The numbers can also
change quite quickly. It's only meant to give a rough measure of what is
going on.
source/blender/blenkernel/BKE_global.h
source/blender/editors/space_info/info_stats.c
source/blender/gpu/GPU_extensions.h
source/blender/gpu/intern/gpu_extensions.c
source/blender/python/intern/bpy_app.c
source/creator/creator.c