MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / Run

Method Run

deps/LLGL/tests/Test_Performance.cpp:185–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 void Run()
186 {
187 std::cout << std::endl << "run performance tests ..." << std::endl;
188
189 commands->Begin();
190 {
191 MeasureTime(
192 ( "MIP-map generation of " + std::to_string(config.numTextures) + " textures with size " +
193 std::to_string(config.textureSize) + " and " + std::to_string(config.arrayLayers) + " array layers" ),
194 std::bind(&PerformanceTest::TestMIPMapGeneration, this)
195 );
196 MeasureTime(
197 ( "MIP-map generation of " + std::to_string(config.numTextures) + " textures with size " +
198 std::to_string(config.textureSize) + " and only first " + std::to_string(config.numMipMaps) + " MIP-maps of first array layer" ),
199 std::bind(&PerformanceTest::TestSubMIPMapGeneration, this)
200 );
201 }
202 commands->End();
203 commandQueue->Submit(*commands);
204 }
205
206};
207

Callers 1

mainFunction · 0.45

Calls 4

to_stringFunction · 0.85
BeginMethod · 0.45
EndMethod · 0.45
SubmitMethod · 0.45

Tested by

no test coverage detected