Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,789 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Locking the frame rate exactly on 60 fps [Re: alphaindigo] #68311
04/01/06 16:30
04/01/06 16:30
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
@alphaindigo: I think what you're looking for is temp_step or time_factor. Look them up in the manual, you can calculate the FPS from these variables.

Re: Locking the frame rate exactly on 60 fps [Re: Excessus] #68312
04/01/06 16:43
04/01/06 16:43
Joined: May 2005
Posts: 155
C:\Program files\GStudio6
alphaindigo Offline
Member
alphaindigo  Offline
Member

Joined: May 2005
Posts: 155
C:\Program files\GStudio6
thanks the reason i wanted to know was because i wanted to make the clip_range directly dependent on the fps like this

while(1)
{
clip_range = ([var for fps] *500);
}

any ideas

Last edited by alphaindigo; 04/01/06 16:50.

beware the sock! - tLempoary...
Re: Locking the frame rate exactly on 60 fps [Re: alphaindigo] #68313
04/02/06 23:54
04/02/06 23:54
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline OP
Senior Expert
ulillillia  Offline OP
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
time_fac*16 - have that.

frame_rate = time_fac*16;

time_fac is merely the reciprocal of the time variable, or raising it to the -1 power:

frame_rate = pow(time, -1)*16;

Edit: Forgot the *16 for the pow() method. As to which is faster, that I don't know, but I suspect time_fac.

Last edited by ulillillia; 04/02/06 23:55.

"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials
Re: Locking the frame rate exactly on 60 fps [Re: ulillillia] #68314
04/04/06 21:43
04/04/06 21:43
Joined: May 2005
Posts: 155
C:\Program files\GStudio6
alphaindigo Offline
Member
alphaindigo  Offline
Member

Joined: May 2005
Posts: 155
C:\Program files\GStudio6
thanks i think that might just about do it


beware the sock! - tLempoary...
Page 3 of 3 1 2 3

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1