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 / What eats up your FPS() rate the most?

Author
Message
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Nov 2003 01:33
I've got a new Gateway PC that has a 2.6 GHertz CPU and over 256 Megs of RAM. It, however, has only the graphics cards that came with it, standard stuff. I'm using DBClassic...
My current project is a mini game. I'm using a small number of objects, two matrices, and mostly math collision. Now I've got a FPS() rating of 20 and sometimes lower if I actually load simply ten more cubes.

I'm wondering if it is me, the computer, or perhaps the software, or gremlins.

What usually causes the highest frames per second rating drop in your projects? Do you have any suggestions to me?

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Nov 2003 02:08 Edited at: 10th Nov 2003 02:19
I just discovered that my particle system is eating up to 10 frames per second at a time. All it basically was was 10 plains that were textured with explosions. I cut the patricle system in half (so it's not as realistic as in the past), but I'm starting to get frustrated with the growing speed problems with DarkBasic and this simple minigame.
This is a brand new PC for crying in a bucket .

Would the fact that I have a Celeron processor be another possible root to my problem...

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 10th Nov 2003 02:28
Low FPS?

My latest box is just a Celeron 2.4 with onboard video (64 megs shared) 512 ram and onboard sound and I get pretty good frame rates.
I had planned to put in a GForce4 card but so far I cant justify it.
I built by system in one of those 'G-Box cubes'.

I think your problem is with your video card.If you can upgrade it you should.
LAB
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Nov 2003 03:06
Boy, I'm just as curious about the nature of my situation as I am scared as heck!

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Nov 2003 03:35
I'm wondering if it is a combination of the software and my computer.

I have a serious question to pose: What is the FPS rating you get in the ICED DEMO that comes with DBClassic. I get a crappy 20 - 15!
What do you get.

Also, the tutorial program with the 1st person "moster hunts the player" game, I get similar ratings...

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 10th Nov 2003 03:50
im getting it at full. nice and smooth

1.4GHz
512 MB ram
XP Pro
my Graphics card (i believe, im sometimes a complete idiot with Hardware) is a NVIDIA GeForce2 GTS

Two words, moo.
Northern Fist
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Nov 2003 05:26 Edited at: 10th Nov 2003 05:26
Hmm, interesting...

Well, I did find something else wrong with my code that I fixed, but I fully comprehend why it keeps things at a higher fps:

If hidden objects are not stacked in the same position (ie a pack of plains for a particle), all I did was move them to different positions instead of all having the origin. Is this wierd or what? Any thoughts?

"Power, precision, and don't forget about speed. If you practice everyday with these things in mind... you begin to develope A FIGHTING MODE." - Fist of Legend (Jet Li)
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 13th Nov 2003 19:49
I got no problem with the framerate.

2.7 GH
512 MB RAM
Geforce fx 256 MB

lalala
UnderLord
21
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 13th Nov 2003 19:55
have you tryed to set your grapics card ot full speed i forget how to do this but it might be in the display options or somewhere i think its in the same place where you can change your speed of your cd-rom for like triple to quad speed ect....you want your grapics card acceleration at maximum

http://www.freewebs.com/ingamers
load image "sp1.bmp",1
paste???? 2d games = fun....teach me
CPU
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 15th Nov 2003 05:35 Edited at: 15th Nov 2003 23:01
For me (DBC) i've fount that DB inbuilt collision eats up fps like nothing else, i would suggest staying away as much as possible from db inbuilt collision. I'm working on a game and i haven't used a single colision with object command

Sparring - Loved by many, Pefected by few.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 15th Nov 2003 05:53
me:
P4 1.5 ghz
asus p4t mobo
384mb rdram 400mhz
elsa gladiac geforce2mx400 32mb <-- Piece of Crapâ„¢
win xp pro

Put it all together and it's a fairly old pc. What really eats up fps in mine is the db collision, transparent and ghosted objects (the gf2mx is slow with transparencies). Even though I've tweaked my video card's properties to lowest quality for best performance, it's still slow in dbc. BUT, with just about every game I've tried with dbpro or blitz3d, it smokes fairly well.

@jopie: well duh!
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 16th Nov 2003 18:53
Try changing the collision types. when i first ran my game the enemy had box collision but when i changed it to polygon collision it was 5-10 fps faster. also having a lot of sprites over a 3d background will slow things down.
ace280
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location:
Posted: 16th Nov 2003 21:24
I sometimes get a frame rate of 12 in my game..but i just tested it today, and it got up to 50!
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 16th Nov 2003 21:50
you have a poo graphics card, simple as that , see if you can disable the (I suspect Intel) chipset and install a video card that actualy does do three-d instead of just implying it does, some of these onboard chipsets (esp those with shared mem) would have trouble running pacman in realtime, remember office machines don`t need to display text at 100fps.
seriously, if you can disable the chipset in the bios or have an AGP port on the MOBO then get yourself a budget card and you won`t recognise it for the same machine, when I installed my 1st accelerator I couldn`t believe the difference, even 2d games ran faster, anybody with a pc with no 3d acceleration is living in the past, do yourself a favour, even a tnt2 would be better than whatever you currently have.
if the GFX card cannot handle the three-d then DX will give the work to the main CPU, the result is something like between 10-30fps with no nice shaders or reflections and a screen that looks like the game was rendered in the old Doom engine, you NEED a 3d card that has the guts, my very old p300 celery with a TNT2 card can do better than that.

Mentor
MikeS
Retired Moderator
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 17th Nov 2003 00:25
Quote: "What usually causes the highest frames per second rating drop in your projects?"


Well, I have dbp, but I can't resist sharing my knowledge.
The things that will kill your fps are

-putting text commands in your main loop
-particles!

Most things can be avoided by having them in a seperate source file.

For ex.

If you're doing a game with lots of levels, I make a different source file for each level. This really increases my speed, rather than having all content in one huge file.

Quote: "string functions in the STRRING.DBA file
INI file functions in the INI.DBA file
Internet code in the NET.DBA file
Map functions in the Level.DBA file
Collision code in the Colide.DBA file
GameMain code in the Main.DBA file
Debugging Code in the Debug.DBA file"


I recommend reading waffles post
http://darkbasicpro.thegamecreators.com/?m=forum_view&t=19271&b=7



A book? I hate book. Book is stupid.
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 18th Nov 2003 20:04
Don't use box or polygon collision!

Use this method:

make object collision box x1,y1,z1,x2,y2,z2,flag

the flag is to set if the box should be rotated or not, if it is rotated it can't create sliding collision.

Xander - Bolt Software

Why do the antagonists always have to look so cool?
Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 18th Nov 2003 22:17
I just found out that a simple program I wrote to display an .X file runs FASTER if I have Windows Media player 7 running in the background( I like listening to music when I program) Without Media player running I get 40 FPS.With Media player RUNNING I get 60 FPS.


Lance
heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 19th Nov 2003 00:46

http://www.thegamecreators.com/?m=forum_view&t=18541&b=15

The more you see, the more you know.
The more you know, the more you see.
MikeS
Retired Moderator
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 19th Nov 2003 01:42
Tips for speeding up your program

-Use functions(If you don't know how, learn)
-Create seperate source files for large ideas(collision, levels,main menu,etc.)
-gosubs instead of goto(avoid spaghetti coding)




A book? I hate book. Book is stupid.
richardneail
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Nov 2003 17:12
What eats up fps in your programs most is

Bad programming or lack of optimisation.

Models with unnesssary polygons such as ones that will never be seen, make sure you delete ones that wont be seen.

Textures that are far larger than they need to be.

Darkbasic doesnt like loads and loads of alpha mapping.

Matrix objects these eat fps for dinner !!.

It is untrue that the inbuilt collision eats fps, it's what you do with the results that eats fps. I only use inbuilt collsion in DarkGT ( original version ) and didnt suffer much with fps problems.

Text or other 2D over the 3D slows it down too.

Rich

You might never win but if you give in will you ever know ??????

Login to post a reply

Server time is: 2025-05-21 19:13:00
Your offset time is: 2025-05-21 19:13:00