Commit d5128a9a authored by Igor Demin's avatar Igor Demin

FPSCounter. refactor getLongFrameMillis

parent a29b62e4
......@@ -51,12 +51,9 @@ internal fun defaultFPSCounter(
FPSCounter(
periodSeconds = fpsPeriodSeconds,
showLongFrames = fpsLongFramesShow
) {
when {
fpsLongFramesShow && fpsLongFramesMillis != null -> fpsLongFramesMillis!!
fpsLongFramesShow -> 1.5 * 1000 / refreshRate
else -> 0.0
showLongFrames = fpsLongFramesShow,
getLongFrameMillis = {
fpsLongFramesMillis ?: 1.5 * 1000 / refreshRate
}
}
)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment