mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-05 08:45:50 +01:00
fix fps calculation causing crashes above 2148 fps
This commit is contained in:
parent
71131ac86a
commit
92c33f5872
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ private class DisplayImpl < Display
|
|||
@last_time = current_time
|
||||
@frames += 1
|
||||
if current_time.second != @seconds
|
||||
fps = @frames * 1_000_000 / @microseconds
|
||||
fps = @frames * (1_000_000 / @microseconds)
|
||||
@window.title = window_title(fps)
|
||||
@microseconds = 0
|
||||
@frames = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue