From 7d462c3bd10b29da1063c338ae66ab253a1e71d8 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Sun, 13 Aug 2023 19:26:00 -0400 Subject: display: Show render/commit split --- virtual-programs/display.folk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'virtual-programs') diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk index b1d16be7..d5623d10 100644 --- a/virtual-programs/display.folk +++ b/virtual-programs/display.folk @@ -80,8 +80,8 @@ On process { } set displayCommands [lmap sublist [lsort -command lcomp $displayList] {lindex $sublist 1}] - lappend displayCommands "commitThenClearStaging" - set displayTime [baretime [list foreach command $displayCommands { {*}$command }]] + set renderTime [baretime [list foreach command $displayCommands { {*}$command }]] + set commitTime [baretime commitThenClearStaging] set inLastSecond 0 set now [clock milliseconds] @@ -92,7 +92,7 @@ On process { } } set frames [lreplace $frames 0 end-$inLastSecond] - Commit { Claim the display time is "$displayTime us ($inLastSecond fps)" } + Commit { Claim the display time is "render $renderTime us + commit $commitTime us ($inLastSecond fps)" } } } # TODO: remove this compatibility hack -- cgit v1.2.3