Author Topic: How to check Vsync screen  (Read 119 times)

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 244
  • UNUS SED LEO
    • View Profile
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

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1715
    • View Profile
Re: How to check Vsync screen
« Reply #1 on: 2020-May-29 »
506 Hz
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 349
    • View Profile
    • my personal website
Re: How to check Vsync screen
« Reply #2 on: 2020-May-29 »
60Hz monitor, code mostly outputs 60, sometime 59hz happens.
Check my source code editor for GLBasic - link Update: 20.04.2020

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 244
  • UNUS SED LEO
    • View Profile
Re: How to check Vsync screen
« Reply #3 on: 2020-May-29 »
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

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1715
    • View Profile
Re: How to check Vsync screen
« Reply #4 on: 2020-May-29 »
Same on both 506
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 244
  • UNUS SED LEO
    • View Profile
Re: How to check Vsync screen
« Reply #5 on: 2020-May-29 »
very strange
But how is the graphics card set on the system?

Offline Heiko

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 502
    • View Profile
Re: How to check Vsync screen
« Reply #6 on: 2020-May-30 »
With LIMITFPS -1,TRUE  50hz
with LIMITFPS -1,FALSE 504hz

Maybe you force vsync off in the driver settings.
Ryzen 5 2400G - MSI B450 Tomahawk

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3918
    • View Profile
    • Space Fractal
Re: How to check Vsync screen
« Reply #7 on: 2020-May-30 »
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 and The beagle Jam.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1715
    • View Profile
Re: How to check Vsync screen
« Reply #8 on: 2020-May-31 »
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