Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/28/26 14:01
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, vince, 1 invisible), 3,768 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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