How to check Vsync screen

Previous topic - Next topic

Qedo

On my system this work. Output 60 Hz
Can you try on your?
Ad maiora

LIMITFPS -1,TRUE
cicli%=100
dt%=GETTIMERALL()
FOR i=0 TO cicli-1
   CLEARSCREEN RGB(120,345,56)
   SHOWSCREEN
NEXT
dt=1000/((GETTIMERALL()-dt)/cicli)
PRINT "refresh Rate = "+dt+"Hz",10,100
SHOWSCREEN
MOUSEWAIT
END

MrPlow

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

dreamerman

60Hz monitor, code mostly outputs 60, sometime 59hz happens.
Check my source code editor for GLBasic - link Update: 20.04.2020

Qedo

506 Hz? It seems too high to me.
On my system I get 500 Hz but only by disabling vsync i.e. with the command "LIMITFPS -1,FALSE"
But with LIMITFPS -1,TRUE the rate should drop.
Otherwise the check doesn't work.
You can check?
Thanks
Ad maiora

MrPlow

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Qedo

very strange
But how is the graphics card set on the system?

Heiko

With LIMITFPS -1,TRUE  50hz
with LIMITFPS -1,FALSE 504hz

Maybe you force vsync off in the driver settings.

spacefractal

500fps is maximum set by code in the flip screen code seen in source code when vsync is disabled (even im wanted that to been skipped completly).

Its a area that require some update and tweeks as its could been better. Etc there is no way to detect the user screen at all. Should check possible to detect the screen settings by a api.

Sometimes a monitor does not sync extracly as 60hz, but can sometimes been 59 or something like that.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

At present only using my laptop screen - maybe that is why...my office with my screen is getting redecorated atm
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs