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.

Dark GDK / sync rate=2000, screen fps = 60 --> simple rotating cube. Why don't I have more than 6 FPS???

Author
Message
Master Xilo
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 31st May 2008 00:56 Edited at: 31st May 2008 00:57
EDIT: I actually meant^^: "Why don't I have more than 60 FPS???"



Thanks for help!!!
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 31st May 2008 01:06 Edited at: 31st May 2008 01:09
From the documentation:
Quote: "dbSyncRate
This command is used to change the default refresh rate dbSyncOn uses to control the speed of the dbSync update speed. The default rate sustains the 'Frames Per Second' at no more than 40fps. You can specify an integer value from 1 to 1000 to set a new maximum rate. A rate of zero will allow the program to refresh as fast as the system will allow. A forced sync rate cannot produce an accurate rating as in order to keep the refresh smooth, the code can only work with milliseconds which is not an accurate method of timing. The system is designed to treat smoothness more important than frame rating accuracy."
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 31st May 2008 01:07 Edited at: 31st May 2008 01:09
Edit - I just noticed that you can edit posts.
Master Xilo
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 31st May 2008 01:11 Edited at: 31st May 2008 01:11
I can type in watever number that is larger than 60 or is 0 and it won't run faster/as fast as possible, why not???
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 31st May 2008 01:17
If you want it to run as fast as possible, you're supposed to use dbSyncRate(0);. Are you saying that doesn't work for you? Your post was a little hard to read.
Master Xilo
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bern, Switzerland
Posted: 31st May 2008 01:19
That's exactly the point. If I use dbSyncRate(0); it doesn't change anything. It's always 60 fps.
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 31st May 2008 01:39 Edited at: 31st May 2008 01:39
I don't know then. I tried your example and received a maximum of 75 FPS. That does seem low for just a spinning cube. Sorry.
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 31st May 2008 04:15
its because the dgdk at current waits for vertical refresh (vsync) by default which caps the framerate at your monitors current refresh rate. 60hz = 60fps, some people with higher fresh rates get more.

I do not think there is any way to disable it at the moment. On the plus side however it stops tearing artifacts and just because your program is running at a max of 60 doesnt mean its slow, keep adding stuff until the fps goes below 60 and then u know you're at your limit and its time to optimise

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 31st May 2008 09:12
my monitor is set to 75hz.

even if i use dbSyncRate(60) i never get exactly 60fps but 64 or 65.
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 31st May 2008 22:11
VSync can be unlocked on trough nVidia Controlpanel on nVidia Cards.

Havnt found out how to do it on ATI cards yet.

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 3rd Jun 2008 22:52
I made a dx9 Program, and my frame rates in windowed mode went from 60 to 230!!!! (Can't wait to try full screen)

Login to post a reply

Server time is: 2024-11-20 11:39:41
Your offset time is: 2024-11-20 11:39:41