| 105 | } |
| 106 | |
| 107 | void 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 | |
| 131 | U32 GFXCardProfiler::queryProfile(const String &cap) |
| 132 | { |
nothing calls this directly
no test coverage detected