Add benchmark annotations to the tests
This will affect total running times simce some tests will be run multiple times but it allows precise becnhmarking.
This commit is contained in:
@ -67,7 +67,9 @@ void TestAmbientOcclusionGenerator::testExecute()
|
||||
|
||||
// Calculate the ambient occlusion values
|
||||
IsVoxelTransparent isVoxelTransparent;
|
||||
calculateAmbientOcclusion(&volData, &ambientOcclusionResult, volData.getEnclosingRegion(), 32.0f, 255, isVoxelTransparent);
|
||||
QBENCHMARK {
|
||||
calculateAmbientOcclusion(&volData, &ambientOcclusionResult, volData.getEnclosingRegion(), 32.0f, 255, isVoxelTransparent);
|
||||
}
|
||||
|
||||
//Check the results by sampling along a line though the centre of the volume. Because
|
||||
//of the two walls we added, samples in the middle are darker than those at the edge.
|
||||
|
Reference in New Issue
Block a user