From 80d75cb3e45fe10904b887e04481761dc458c876 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Fri, 24 Apr 2015 14:11:05 +0200 Subject: 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/creator/creator.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index 440710f0572..d86ccd657d4 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -1491,6 +1491,7 @@ static void setupArguments(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle) BLI_argsAdd(ba, 1, NULL, "--debug-value", "\n\tSet debug value of on startup\n", set_debug_value, NULL); BLI_argsAdd(ba, 1, NULL, "--debug-jobs", "\n\tEnable time profiling for background jobs.", debug_mode_generic, (void *)G_DEBUG_JOBS); BLI_argsAdd(ba, 1, NULL, "--debug-depsgraph", "\n\tEnable debug messages from dependency graph", debug_mode_generic, (void *)G_DEBUG_DEPSGRAPH); + BLI_argsAdd(ba, 1, NULL, "--debug-gpumem", "\n\tEnable GPU memory stats in status bar", debug_mode_generic, (void *)G_DEBUG_GPU_MEM); BLI_argsAdd(ba, 1, NULL, "--verbose", "\n\tSet logging verbosity level.", set_verbosity, NULL); -- cgit v1.2.3