6.7.0 - Alpha4 - 修复 canvas 元素控件 setMaxFps 方法内部帧率计算错误
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user