set framerate correctly in iOS

This commit is contained in:
Nick Fisher
2023-08-18 12:01:50 +08:00
parent 73a1df18dd
commit 4d98778c7c

View File

@@ -59,7 +59,7 @@ class FilamentController {
} }
Future setFrameRate(int framerate) async { Future setFrameRate(int framerate) async {
_channel.invokeMethod("setFrameInterval", 1000.0 / framerate); _channel.invokeMethod("setFrameInterval", 1.0 / framerate);
} }
void setPixelRatio(double ratio) { void setPixelRatio(double ratio) {