setFrameRate method

  1. @override
Future setFrameRate(
  1. int framerate
)
override

Sets the framerate for continuous rendering when setRendering is enabled.

Implementation

@override
Future setFrameRate(int framerate) async {
  _module.ccall(
      "set_frame_interval",
      "void",
      ["void*".toJS, "float".toJS].toJS,
      [_viewer!, (1 / framerate).toJS].toJS,
      null);
}