20,741
edits
(→Nasal GC: new section) |
|||
Line 137: | Line 137: | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
// or log the whole thing to the property tree | // or log the whole thing to the property tree | ||
if (_gpu) | |||
SG_LOG(SG_GENERAL, SG_ALERT, "VRAM usage:" << _gpu->getVRAMUsageInKB() << std::endl ); | SG_LOG(SG_GENERAL, SG_ALERT, "VRAM usage:" << _gpu->getVRAMUsageInKB() << std::endl ); | ||
else SG_LOG(SG_GENERAL, SG_ALERT, "VRAM tracking unsupported for your CPU"); | |||
</syntaxhighlight> | </syntaxhighlight> | ||