History

Merge pull request #9000 from samcake/punk

Add Frame Timing and GPU memory to the Stats and user activity log

Chris Collins committed 10 years ago

Commit eec8e2f2 parents 773529c 449add66 files · +63 −1Browse files

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

Unified · Split

interface/src/Application.cpp+3−0
@@ -1238,7 +1238,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1237 unmodified lines
12381238
12391239 auto glInfo = getGLContextData();
12401240 properties["gl_info"] = glInfo;
1241+ properties["gpu_used_memory"] = (int)BYTES_TO_MB(gpu::Context::getUsedGPUMemory());
12411242 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());
12421245 properties["ideal_thread_count"] = QThread::idealThreadCount();
12431246
12441247 auto hmdHeadPose = getHMDSensorPose();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t