Page 1 of 1
Monitor frequency only as fast as the slowest monitor
Posted: Mon Nov 27, 2023 8:33 am
by coco2
In a multi-monitor setup if I run my game on a 165hz monitor the frame rate will only be as fast as the other monitor 60hz. When I turn off the 60hz monitor and just have the 165hz monitor running the game runs at 165 FPS. Is this normal or a bug in Purebasic?
Re: Monitor frequency only as fast as the slowest monitor
Posted: Mon Nov 27, 2023 4:23 pm
by Mijikai
Did you use SetFramerate() ?
Re: Monitor frequency only as fast as the slowest monitor
Posted: Mon Nov 27, 2023 9:11 pm
by coco2
Yes I'm using SetFrameRate()
When I set the 165 Hz monitor to the main monitor then it will run the game at 165 FPS.
I'm wondering if there's a way to have the 165 Hz monitor as secondary and run the game at 165 FPS.
Re: Monitor frequency only as fast as the slowest monitor
Posted: Wed Nov 29, 2023 1:17 am
by coco2
I have found the problem. When you have "Enable DPI Aware Executable" checked in Compiler Options, if your second monitor is a higher frequency than your main monitor, FlipBuffers() will only allow a frame rate of the slower monitor. I'm not sure if this is a bug or a limitation of Windows. Can anyone advise?
Bug reported here:
viewtopic.php?t=82965