mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Initial work on supporting VK_GOOGLE_display_timing. Not working yet.
This commit is contained in:
1 parent
1a1a6fe15d
commit
e16cac6548
7 files changed
+70
-11
No files matched your search
+7
-2
@@ -113,12 +113,17 @@ static void DrawFrameTiming(UIContext *ctx, const Bounds &bounds) {
|
||||
double submitLatency_s = data.firstSubmit - data.frameBegin;
|
||||
double queuePresentLatency_s = data.queuePresent - data.frameBegin;
|
||||
double actualPresentLatency_s = data.actualPresent - data.frameBegin;
|
||||
double margin = data.presentMargin;
|
||||
double computedMargin = data.actualPresent - data.queuePresent;
|
||||
|
||||
char presentStats[256] = "";
|
||||
if (data.actualPresent != 0.0) {
|
||||
snprintf(presentStats, sizeof(presentStats),
|
||||
"* Actual present: %0.1f ms\n",
|
||||
actualPresentLatency_s * 1000.0);
|
||||
"* Actual present: %0.1f ms\n"
|
||||
"* Margin: %0.1f ms (%0.1f computed)\n",
|
||||
actualPresentLatency_s * 1000.0,
|
||||
margin * 1000.0,
|
||||
computedMargin * 1000.0);
|
||||
}
|
||||
snprintf(statBuf, sizeof(statBuf),
|
||||
"Time from start of frame to event:\n"
|
||||
|
||||
Reference in new issue
Block a user