Gamestudio Links
Zorro Links
Newest Posts
Tradestation Multi-sessions??
by walt_Schwarz. 06/27/26 12:32
Z9 getting Error 058
by jcl. 06/26/26 14:07
ZorroGPT
by TipmyPip. 06/24/26 18:31
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 5,930 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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