1

**GLBasic - en / How to check Vsync screen**

« **on:**2020-May-29 »

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

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