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.

Author
Message
Mugen Wizardry
User Banned
Posted: 29th Aug 2010 17:34
Hi all. Ok, is there a code that allows for a CONSTANT 60 FPS no matter what graphics card u have?

thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 29th Aug 2010 18:54
No matter what you do, if your program is rendering too much or doing too many calculations, it cannot run at 60 FPS. Well, okay, what you can do is optimize it so it isn't rendering so much or doing so many calculations.

If you're just wondering about why the game tends to fluctuate around 60 FPS, try setting vsync:
set display mode width,height,depth,1


Latest progress: Fog of War implemented; frustrated by pathfinding >.>
Mugen Wizardry
User Banned
Posted: 29th Aug 2010 19:37
isnt there a way i can trick the game into staying at a constant rate? it was possible in blitzbasic.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
CocaCola
16
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 29th Aug 2010 19:44
Quote: "isnt there a way i can trick the game into staying at a constant rate? it was possible in blitzbasic."


I don't believe it's possible in anything, think about it, you cant FORCE a computer to run exactly how you want it, if there was a way don't you think that there would be NO lag in ANY games?

I want coke, not Pepsi!
Mugen Wizardry
User Banned
Posted: 29th Aug 2010 19:49
then how did blitzbasic do it huh?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 29th Aug 2010 19:57
If you want to know that you'll probably need to go the the blitz forums.


Latest progress: Fog of War implemented; frustrated by pathfinding >.>
Jeff032
18
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 29th Aug 2010 20:22
So is your FPS higher or lower than 60?

If your FPS is higher, then enabling VSync like BMacZero said should keep it running at about 60 FPS.

If your FPS is lower, then you need to find what is slowing it down, and fix it.

Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 29th Aug 2010 20:32
You're probably thinking about timer-based movement. You will not find a machine that can be given an infinite amount of tasks and be able to perform them flawlessly at 60 FPS.

"everyone forgets a semi-colon sometimes." - Phaelax
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 29th Aug 2010 20:36
set display mode x,y,z,32,1
sync on
Normally does the trick dependent on your monitor though. Also if your game can't physically run at 60, it simply will run as fast as it is able.

http://s6.bitefight.org/c.php?uid=103081
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 29th Aug 2010 21:56 Edited at: 29th Aug 2010 21:56
Setting VSync on will not make your game run at 60 FPS. It will make your game run at whatever refresh rate your monitor is set to run at. (Mine for example is set to run at 85Hz because I can )

As Zotoaster said, you're probably thinking of timer based movement which will ensure that your game moves at the correct speed regardless of FPS. (Which means that your player, for example, will move at X units per second regardless of whether your game runs at 2, or 200 FPS.)

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-23 12:10:29
Your offset time is: 2026-07-23 12:10:29