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 / Low frame rate, Why?

Author
Message
Sayonari Omega Black
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: On my desk.
Posted: 8th Apr 2004 04:41
Hi there.

Well I'm having problems with the frame rate of my demo so I have two questions.

1.- What's the ideal frame rate of any game?
2.- How can I improve the frame rate?

I may say that I'm working with texturized low-poly objects like cylinders and boxes so I don't know why I'm having that problem.
For your support Thanks.

You are the Chrono Trigger !!!!!!!!!!
Scouseknight
21
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Bootle, Merseyside, UK
Posted: 8th Apr 2004 04:54
Would be a good idea to post the source code and also the specs of your PC.

Blanked
21
Years of Service
User Offline
Joined: 27th Mar 2004
Location: UK
Posted: 8th Apr 2004 04:55
1- 60 fps but 30fps is still good

2- Hide objects not on screen
Use textured plains instead of sprites
Don't use too many cylinders, cones or spheres

Can't think of anymore at the moment but i'll get back to you
Don Malone
22
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 8th Apr 2004 06:17 Edited at: 8th Apr 2004 06:20
In Visual Basic there was a technique called unwinding (I think) a loop. In Visual basic there was extra overhead in the loop commands that made them less than as effecient as they could have been so a technique was processing several elements in the loop with each pass to save on the loop overhead. If you are reading in a text file, instead of reading a character and looping. The loop would read and process multiple characters. Character(X), Charater (X+1), Charater (X+2), and so forth. This is not always possible but it is a way that may save some game cycles if you are trying to squeeze a little more speed out of a program

Or am I thinking about C?

[edit] I need to proof read a little better before I hit that post buton.

Wasting CPU Cycles since the 286 was a hot machine.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 8th Apr 2004 10:52
Yes, we could do with some code to see what's going on. There are hundreds of ways to speed up your app, and most of them are just understanding the quirks and foibles of the language. Fido's "plains not sprites" is a prime example.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 8th Apr 2004 23:02
are you even using

sync on
sync rate
sync

commands?, or do you rely on the very slow default DB sync system?, lots of possible things it could be.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
Sayonari Omega Black
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: On my desk.
Posted: 12th Apr 2004 20:38
First off all thank you for your anwers.

Well I checked the main loop and there is no overheat, I'm using the sync command and there are no sprites. My computer specs are Intel 800Mhz processor, 256 RAM memory and a Direct AGP 3d video card.

I deleted some cylinders and spheres and the game gain some frames which makes me think what would happen if I load some 3ds objects?

For your support thank you.

You are the Chrono Trigger !!!!!!!!!!

Login to post a reply

Server time is: 2025-05-23 06:30:13
Your offset time is: 2025-05-23 06:30:13