MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init

Method init

Engine/source/gfx/gfxCardProfile.cpp:107–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void GFXCardProfiler::init()
108{
109 // Spew a bit...
110 Con::printf("Initializing GFXCardProfiler (%s)", getRendererString().c_str());
111 Con::printf(" o Chipset : '%s'", getChipString().c_str());
112 Con::printf(" o Card : '%s'", getCardString().c_str());
113 Con::printf(" o Version : '%s'", getVersionString().c_str());
114 Con::printf(" o VRAM : %d MB", getVideoMemoryInMB());
115
116 // Do card-specific setup...
117 Con::printf(" - Scanning card capabilities...");
118
119 setupCardCapabilities();
120
121 // And finally, load stuff up...
122 String render = strippedString(getRendererString());
123 String chipset = strippedString(getChipString());
124 String card = strippedString(getCardString());
125 String version = strippedString(getVersionString());
126
127 Con::printf(" - Loading card profiles...");
128 loadProfileScripts(render, chipset, card, version);
129}
130
131U32 GFXCardProfiler::queryProfile(const String &cap)
132{

Callers

nothing calls this directly

Calls 3

printfFunction · 0.85
getVersionStringFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected