History

Adding the frame gpu and batch timer

samcake committed 10 years ago

Commit 76aa5411 parent 3db18315 files · +46 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+2−1
@@ -1240,7 +1240,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1239 unmodified lines
12401240 properties["gl_info"] = glInfo;
12411241 properties["gpu_used_memory"] = (int)BYTES_TO_MB(gpu::Context::getUsedGPUMemory());
12421242 properties["gpu_free_memory"] = (int)BYTES_TO_MB(gpu::Context::getFreeGPUMemory());
1243− properties["gpu_frame_time"] = (int)(qApp->getRenderEngine()->);
1243+ properties["gpu_frame_time"] = (float)(qApp->getGPUContext()->getFrameTimerGPUAverage());
1244+ properties["batch_frame_time"] = (float)(qApp->getGPUContext()->getFrameTimerBatchAverage());
12441245 properties["ideal_thread_count"] = QThread::idealThreadCount();
12451246
12461247 auto hmdHeadPose = getHMDSensorPose();