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.

DarkBASIC Discussion / FRAMES PER SECOND PROBLEM

Author
Message
Chaos
22
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 22nd Apr 2003 00:16 Edited at: 22nd Apr 2003 00:54
how can i improve my fps is there a way to hide everything outsidethe camera range? will this help my fps? OR am i just bieng stupid?

Thanx in advance
Darkness

Chiwawa
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 22nd Apr 2003 00:27
find the distance between you ..and the objetc..and if the object if farter....or further.... i dont know... i mean if he is more far
..than the camera range then.. "hide object" and make static object....for the object that you dont need to move...

and object that you need to move...just some time..you can use "attach object to static" ...but this commande is a BIG BUG
Chaos
22
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 22nd Apr 2003 00:38 Edited at: 22nd Apr 2003 00:52
thank u for that i dont suppose u can write a quick snippet i would be so gratful(bit too 1930)

thanks
Darkness

Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 22nd Apr 2003 01:40
Couldn't you just use 'object in screen' to do it.

Why the hell'd you ask me for crying out loud!?!

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
GameKit
22
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 22nd Apr 2003 17:36
the way i make my fps[frames per second] faster is i do...

for a=[first object] to [last object]
if object in screen(a)=1 and object visible(a)=0 then show object a
if object in screen(a)=0 and object visible(a)=1 then hide object a
next a

this will speed your fps up by a 2-5. Also if you're game uses fog you can set the camera distance to a little more than the fog distance. This will also speed up you're fps (make sure you use a sky sphere)....hope this helps.

Anyone Can Destroy...But Few Can Create...
Chiwawa
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 22nd Apr 2003 23:39
and ..you should have an array..to save if your object is hided or not... and do something like that:

Chiwawa
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 22nd Apr 2003 23:41
hmmmmmm but...im dont exactly know what "object in screen" and "object visible" does...

in screen does it check if the object is in the...feild of view...and the object visible check if..the object is hided by anotehr?...or object visible..also check if he is hided....by the commande ? if it do..my array...is unusefull

Login to post a reply

Server time is: 2025-05-16 23:19:25
Your offset time is: 2025-05-16 23:19:25