Monitor frequency only as fast as the slowest monitor

Advanced game related topics
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Monitor frequency only as fast as the slowest monitor

Post 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?
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: Monitor frequency only as fast as the slowest monitor

Post by Mijikai »

Did you use SetFramerate() ?
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Monitor frequency only as fast as the slowest monitor

Post 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.
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Monitor frequency only as fast as the slowest monitor

Post 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
Post Reply