diff options
| author | Omar Rizwan <omar@omar.website> | 2023-08-13 23:26:00 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2023-08-13 23:26:00 +0000 |
| commit | 7d462c3bd10b29da1063c338ae66ab253a1e71d8 (patch) | |
| tree | 90c062dc62b5694c57ab92b2283cb6bcfcc14544 /virtual-programs | |
| parent | Merge remote-tracking branch 'origin/main' (diff) | |
| download | folk-7d462c3bd10b29da1063c338ae66ab253a1e71d8.tar.gz folk-7d462c3bd10b29da1063c338ae66ab253a1e71d8.zip | |
display: Show render/commit split
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/display.folk | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
