Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Weird FPS with SetSyncRate() until I set it about 233 and above. Possible BUG?

Author
Message
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 2nd Aug 2020 21:06 Edited at: 2nd Aug 2020 21:08
Hi,

for some time now, my apps run at different FPS than I set with SetSyncRate(), if I use values lower than about 233.
That affects both Studio and Classic.

Please try this code:


With SetSyncRate ( 30,1 ) I'm getting around 26 fps
With SetSyncRate ( 60,1 ) I'm getting around 54 fps
With SetSyncRate ( 100,1 ) I'm getting around 64 fps
With SetSyncRate ( 200,1 ) I'm getting around 64 fps, jumping up and down
With SetSyncRate ( 230,1 ) I'm getting around 215-225 fps, jumping up and down
With SetSyncRate ( 233,1 ) I'm getting stable 233 fps
Any values above 233 also work fine!

Win10 64bit, NVidia 970 GTX


Can anybody confirm?


PSY LABS Games
Coders don't die, they just gosub without return
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 2nd Aug 2020 21:49
I get
With SetSyncRate ( 30,1 ) I'm getting 29 fps
With SetSyncRate ( 60,1 ) I'm getting 59 fps
With SetSyncRate ( 100,1 ) I'm getting 99 fps
With SetSyncRate ( 200,1 ) I'm getting 199 fps
With SetSyncRate ( 230,1 ) I'm getting 229 fps
With SetSyncRate ( 233,1 ) I'm getting 232 fps

With Version 2020.04.16 and NVIDIA GeForce GTX 750 Ti
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 3rd Aug 2020 12:26 Edited at: 3rd Aug 2020 12:28
I'm also using 2020.04.16
I have a G-Sync Monitor, but it doesn't matter whether I turn the G-Sync feature on or off, or play around with the global 3D settings.

The strange thing is, when I set the fps about 230+, it works as it should...


PSY LABS Games
Coders don't die, they just gosub without return
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 3rd Aug 2020 13:02 Edited at: 3rd Aug 2020 13:12
I just made a clean GFX driver uninstall with DDU and reinstalled the drivers, but that didn't change anything Oo

(edit) Just tried the same code with Blitz3D, and the FPS are just like I set them.


PSY LABS Games
Coders don't die, they just gosub without return
JosephB
17
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 3rd Aug 2020 15:02
My system always reports 1 less than the amount set with the SetSyncRate command, ie SetSyncRate(30,1) reports a FPS of 29.

Win10 64bit, NVidia RTX 2070 Super, AGKS 2020,07,28 and AGKC 2020.04,30.
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 3rd Aug 2020 16:37
@JosephB

That's how it's supposed to be, I Trunc()ed the FPS, which are mostly something like xxx.99

Thanks for testing!


PSY LABS Games
Coders don't die, they just gosub without return
houndog66
5
Years of Service
User Offline
Joined: 1st Mar 2019
Location:
Posted: 3rd Aug 2020 16:51
If you use setvsync(1) it behaves better i think?

PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 3rd Aug 2020 17:22
SetVSync() works like it's supposed to.

Problem is, there are some scenarios I want to use SetSyncRate()...


PSY LABS Games
Coders don't die, they just gosub without return

Login to post a reply

Server time is: 2024-03-28 11:26:35
Your offset time is: 2024-03-28 11:26:35