Tweak performance message to include frame interval
This commit is contained in:
parent
a8e2c8d89a
commit
6d01f8cc3f
@ -81,8 +81,8 @@ int main(int argc, char *argv[])
|
|||||||
printf(
|
printf(
|
||||||
VT100_CLEAR VT100_CURSORTOPLEFT
|
VT100_CLEAR VT100_CURSORTOPLEFT
|
||||||
"evt\t%10.3f μs\nupdate\t%10.3f μs\nrender\t"
|
"evt\t%10.3f μs\nupdate\t%10.3f μs\nrender\t"
|
||||||
"%10.3f μs\ntotal\t%10.3f μs (%05.2f%%)\n",
|
"%10.3f μs\ntotal\t%10.3f μs (%.2f%% of %.3f ms)\n",
|
||||||
evt, update, render, total, total_pc);
|
evt, update, render, total, total_pc, 1000 * interval);
|
||||||
}
|
}
|
||||||
++frame;
|
++frame;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user