6.7.0 - Alpha4 - 修复 canvas 元素控件 setMaxFps 方法内部帧率计算错误

This commit is contained in:
SuperMonster003
2025-09-10 11:33:27 +08:00
parent 60d42105e1
commit 5e5203abce
2 changed files with 4 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ class JsCanvasView : TextureView, TextureView.SurfaceTextureListener {
}
fun setMaxFps(maxFps: Int) {
mTimePerDraw = (if (maxFps <= 0) 0L else 100L / maxFps)
mTimePerDraw = if (maxFps <= 0) 0L else 1000L / maxFps
}
@Synchronized