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 Professional Discussion / My FPS is so low even in a simple program

Author
Message
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 21st May 2003 02:30
i have a PIII 650 mhz, and 128 m of ram, and a GForce 4 64meg but my programs run at about 20-50 fps which is to low to expand on, any ideas to speed up my program or anything i should check or set.

BTW. i dont have alot of polygons being drawn its just slow and only in my program the examples run fine
Artifact Basic-5%
Epic Crossings RPG-25%
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 21st May 2003 02:34
Do you use "Sync On"??

QuothTheRaven
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 21st May 2003 02:40
what exactly is in your program? A matrix with a texture that is scaled down small and detailed will quickly suck up RAM. And also try sync rate 0

Darken the skies, we are god
http://www.DelvarWorld.com
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 21st May 2003 02:53 Edited at: 21st May 2003 02:54
Try this program and tell me what FPS you got in windowed fullscreen...



I get 144 FPS.
Pentium 2 @ 300MHz
320MB SDRam
gForce 2 32MB @ 1280x960 32bpp
Win2K SP4

Mr Underhill
23
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 21st May 2003 05:09
Huh? In DBP I only got 15 on a 500Mhz Pentium III (I got 60 in DBC)...what's that about?

"Not all that is gold does not glitter, not all those who wander are lost, not all that is old does not whither, deep roots are not reached by the frost..." - Aragorn (Strider)
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 21st May 2003 13:27
Just some feedback for you...

I get 314 fps
AMD 1800+ (1533 MHz)
1 Gig DDR RAM
gForce3 Ti/200 64MB @ 1280x960 32bpp
Windows XP Pro
DBPro patch 4.0

Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 21st May 2003 19:38
heh.. erm... your neva gonna guess what I get!

A whole 3 fps!!!!!!!!!!!

here's my PC Spec:

Operating System: Microsoft Windows XP Home Edition 5.1
Processor: AMD-K6 3D Processor, MMX, 3D Now, ~501MHz
Memory: 248MB RAM

I don't understand all that but I bet it's because my PC's aload of shite!!!

I think I might need a better graphics card.

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st May 2003 20:34
...and a new computer

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
hexGEAR
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 21st May 2003 21:05


everyday of life is a new chapter that has already been fortold but is up to the soul to capture.
Shady Simpson
23
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 21st May 2003 21:39
I am getting a new grahics card very soon, I just never thought it was THAT slow!!!!!

Any Recomendatins on any Graphics Cards?

Thanx.

The Darthster
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 21st May 2003 23:44
Um,

DBCv1.13: 75 fps
DBPro(4.1): 1036 fps

Amd Athlon XP 2000+
256Mb Ram
GeForce4 Ti4800 128Mb AGP4x
Win98 SE



Once I was but the learner,
now, I am the Master.
The Wendigo
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 22nd May 2003 05:01
The problem is that text is NOT 3d. 3D acceleraters are good for one thing: making 3D fly. Unfortunetely, 3D acceleraters don't like 2D all that much. Best thing I would do for anyone having fps problems is to try getting rid of all code such as PRINT and TEXT to get rid of the slowdown.

Unfortunetely the DB team would be more than hardpressed to find a way to make all games made in DB fast. The reason: it's practically impossable. Optimizations are the best tactic to keep in mind when developing. I've heard that you should optimize last, but that is a lie if you ask me. optimize while programming.'

Optimization tricks::
---------------------
1. Use a form of LOD for all your meshes. If you want top quality looking models close up, it's probably the only route you can take. Basically, make your stuff look really cheezy when it's too far away and highly detailed close up. You can test distance with the Pythagorean theorum: DISTANCE = SQRT(X^2 + Y^2 + Z^2). Where x, y and z are the differences in those respective coordinates (objectX - cameraX for instance)
2. Precalculations. Precalcs are a great way to speed things up. I use them alot when I need them to handle things like sine and cosine. Basically, you make an array that has all the data of sine and cosine before you run the game. then it won't be calculating at runtime. You just index the array.
3. Get rid of slow arithmetic. If you are multiplying or worse, dividing, see if you can change that to adding and subtracting somehow. Multiplying and dividing is really a time consuming to a computer. It slows things down tremendously.

Sorry I went off on a tangent. I'm getting just like raven

Current Projects: mini BSP maker 50%, Height Mapper with many features 75%, FPS/RTT Nameless at the moment 15%
Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 22nd May 2003 22:30
use the latest Patch if you aren't already, then stay waay from text, raw 2d or color changing codes

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me

Login to post a reply

Server time is: 2026-07-11 13:58:39
Your offset time is: 2026-07-11 13:58:39