[bmx vanilla] 144hz monitor and 60Hz game

Started by wookie22, March 17, 2019, 00:13:39

Previous topic - Next topic

wookie22

Hello!
Does anyone tried to set 60hz graphics mode in Bmx on 144Hz monitor? I have 60Hz monitor but one of my game testers got game running at double speed. Is it normal behavior?

I used Graphics(1280, 720, 32, 60) (DirectX 9)
Hidden Deep - 2D Action & Exploration Sci-Fi Thriller for PC/Mac/Linux
http://www.hiddendeepgame.com

TomToad

Do not tie the game speed with the refresh rate.  You cannot guarantee that the person's graphics card and settings will honor the software's requests.  Instead, use a fixed timestep or delta timing.
https://gafferongames.com/post/fix_your_timestep/
------------------------------------------------
8 rabbits equals 1 rabbyte.

wookie22

I thought that it was CRT era and now every monitor serves 60hz. Am I wrong?
Hidden Deep - 2D Action & Exploration Sci-Fi Thriller for PC/Mac/Linux
http://www.hiddendeepgame.com

Qube

Quote from: wookie22 on March 17, 2019, 01:21:33
I thought that it was CRT era and now every monitor serves 60hz. Am I wrong?
Yes, the monitor may support 60hz but if the user has vsync turned off on graphic card settings or the GPU driver reads the default refresh of the monitor and insist on running at that then you'll run into these issues. Setting the hz in your app may have no impact at all. It will on some but not on others. unfortunately you can not rely on stating the hz like that.

You will need to add timing code to your app to cater for different refresh rates of monitors and those that force vsync off.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Yellownakji

Quote from: wookie22 on March 17, 2019, 00:13:39
Hello!
Does anyone tried to set 60hz graphics mode in Bmx on 144Hz monitor? I have 60Hz monitor but one of my game testers got game running at double speed. Is it normal behavior?

I used Graphics(1280, 720, 32, 60) (DirectX 9)

ALWAYS base your game off of calculated delta-time.   even regular software.