We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc14fa commit 2f71af4Copy full SHA for 2f71af4
demosys/view/controller.py
@@ -71,6 +71,7 @@ def run(manager=None):
71
# Main loop
72
frames, ft = 0, 0
73
prev_time = TIMER.get_time()
74
+ time_start = glfw.get_time()
75
while not WINDOW.should_close():
76
# Immediately get control of the current time
77
t = TIMER.get_time()
@@ -92,10 +93,12 @@ def run(manager=None):
92
93
ft = t - prev_time
94
prev_time = t
95
- duration = TIMER.stop()
96
+ duration_timer = TIMER.stop()
97
+ duration = glfw.get_time() - time_start
98
if duration > 0:
99
fps = round(frames / duration, 2)
100
print("Duration: {}s rendering {} frames at {} fps".format(duration, frames, fps))
101
+ print("Timeline duration:", duration_timer)
102
103
# Let the window and context clean itself up
104
0 commit comments