Reduced a few multiplies and divides by a large number.
I'm counting times in microseconds. But I should not need to always multiply and divide on them when doing time showings. This is just waste of cycles.
This commit is contained in:
parent
04080bff00
commit
a220c5c16f
1 changed files with 3 additions and 2 deletions
|
@ -1007,14 +1007,15 @@ def layer(win, call):
|
|||
# REMAINING TIME
|
||||
|
||||
remaining = avarage * (win.renders[render]["end_frame"] - win.renders[render]["current_frame"] + 1)
|
||||
remaining = remaining - ((time.time() - win.render_runtime.get("started_rendering", 0))*1000000)
|
||||
remaining = remaining/1000000
|
||||
remaining = remaining - (time.time() - win.render_runtime.get("started_rendering", 0))
|
||||
|
||||
|
||||
UI_color.set(layer, win, "text_normal")
|
||||
layer.set_font_size(20)
|
||||
layer.move_to(x+10,
|
||||
y+current_Y + win.scroll["render"]+30)
|
||||
layer.show_text(talk.text("render_remaining_time")+" "+UI_math.timestring(remaining/1000000))
|
||||
layer.show_text(talk.text("render_remaining_time")+" "+UI_math.timestring(remaining))
|
||||
|
||||
current_Y = current_Y + 40
|
||||
|
||||
|
|
Loading…
Reference in a new issue