Quote: "Is there some way to read Hz of monitor?"
not directly but you could:
SetVirtualResolution( 1080, 720 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
`SetSyncRate( 0, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
SetVSync(1)
for x = 1 to 100
Sync()
Time# = Time# + GetFrameTime()
next x
FPS# = (100.0/Time#)
FPS = FPS#
do
print(FPS#)
print(FPS)
Sync()
loop
...without a plugin.
i wouldn't use less than 100 iterations where, say, 10 could easily produce 59 (or worse) on a 60hz monitor.
though, i expect sampling 10 frames then rounding to the nearest "5" could be (nearly?) as accurate.