I wanted to try making a small python control panel to monitor viewport OpenGL memory usage. I was also going to explore methods to force a reduction in VRAM usage.
However, I've noticed several pieces that seem to be missing or non-functional in the Python API and was hoping I could get some info on them.
First it seems that several of the flags returned by c4d.GeGetSystemInfo()
are missing from the python API. The only ones that appear to exist are c4d.SYSTEMINFO_NOGUI
and c4d.SYSTEMINFO_OSX
. I was hoping that c4d.SYSTEMINFO_OPENGL
would be in there.
Second and more importantly I can't seem to get any information that's useful in my case from c4d.storage.GeGetMemoryStat()
. The BaseContainer returned seems to only have values for c4d.C4D_MEMORY_STAT_MEMORY_INUSE
and c4d.C4D_MEMORY_STAT_MEMORY_PEAK
. All of the other keys return 0 or the keys don't exist in the BaseContainer at all. The latter is the case for c4d.C4D_MEMORY_STAT_OPENGL_USED
and c4d.C4D_MEMORY_STAT_OPENGL_ALLOCATED
which are the ones I was hoping for.