Limit FPS?

@skar Try viewer.preferredFPS=60 .

@dave1707 thanks that works!

You can use “viewer.fps”, and choose either 15, 30, 60 or 120 FPS:)

@creator27 - just tried (in setup()) :


parameter.integer(“viewer.FPS”)

And that came up with a slider 1-10. So is it an array and what are the other table entries if that is the case?

It’s not “viewer.FPS” but “viewer.preferredFPS” as shown further above. A parameter.integer with a variable name but without any values defaults to a range of 1 to 10.

@dave1707 - oops thanks for that correction and explanation of my observation. Has that feature been added recently, publicised and documented?

@Bri_G The preferredFPS has been around for a few releases. I don’t remember what release though.

Don’t put it in a parameter or anything. Just put anywhere in “function setup()”