mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-09 05:00:42 -06:00
Perform a glFinish at the beginning and the end of the performance measurement frame to capture all OpenGL timings
This commit is contained in:
@@ -46,6 +46,7 @@ PerformanceMeasurement::PerformanceMeasurement(std::string identifier,
|
||||
}
|
||||
|
||||
PerformanceMeasurement::~PerformanceMeasurement() {
|
||||
glFinish();
|
||||
auto endTime = std::chrono::high_resolution_clock::now();
|
||||
auto duration = std::chrono::duration_cast<std::chrono::microseconds>(
|
||||
endTime - _startTime).count();
|
||||
|
||||
Reference in New Issue
Block a user