mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2026-01-07 19:52:39 +01:00
Fix fps counter
This commit is contained in:
parent
349f99283e
commit
96e29edbf6
@ -16,8 +16,8 @@ class FPSCalculator {
|
||||
if (currentTime - prevTime > 1000) {
|
||||
val delta = currentTime - prevTime
|
||||
prevTime = currentTime
|
||||
numFrames = 0
|
||||
_fps = numFrames.asInstanceOf[Float] / delta * 1000f
|
||||
numFrames = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user