Add Frame Timing and GPU memory to the Stats and user activity log
Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1238,7 +1238,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1237 unmodified lines | |||
| 1238 | 1238 | ||
| 1239 | auto glInfo = getGLContextData(); | 1239 | auto glInfo = getGLContextData(); |
| 1240 | properties["gl_info"] = glInfo; | 1240 | properties["gl_info"] = glInfo; |
| 1241 | properties["gpu_used_memory"] = (int)BYTES_TO_MB(gpu::Context::getUsedGPUMemory()); | ||
| 1241 | properties["gpu_free_memory"] = (int)BYTES_TO_MB(gpu::Context::getFreeGPUMemory()); | 1242 | properties["gpu_free_memory"] = (int)BYTES_TO_MB(gpu::Context::getFreeGPUMemory()); |
| 1243 | properties["gpu_frame_time"] = (float)(qApp->getGPUContext()->getFrameTimerGPUAverage()); | ||
| 1244 | properties["batch_frame_time"] = (float)(qApp->getGPUContext()->getFrameTimerBatchAverage()); | ||
| 1242 | properties["ideal_thread_count"] = QThread::idealThreadCount(); | 1245 | properties["ideal_thread_count"] = QThread::idealThreadCount(); |
| 1243 | 1246 | ||
| 1244 | auto hmdHeadPose = getHMDSensorPose(); | 1247 | auto hmdHeadPose = getHMDSensorPose(); |