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 / Answers to all of your framerate problems...

Author
Message
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 7th Dec 2003 02:46
Many of you have had problems with your framerate, and, through my experience, I have found many solutions for common framerate problems. I will share those with all of you in hopes that you may benefit from them:

-Avoid using any matrices. They are potentially slow, especially large ones. If at all possible, use a texture plain.

-Hide all objects that are not on the screen. However, do not hide them if they are already hidden. For example:


-Use as small of texture as possible, without sacrificing too much detail.

-Use the least number of objects as possible. That is one large slowdown in DB Classic is large numbers of objects on screen at once.

-Don't use the "color object" command. It is quite slow, and a solid color texture applied is much faster.

-Use the least amount of screen text and 2d graphics as possible.

-Avoid using "get image" in the main loop. It is quite slow.

-Be careful when making your models. Delete all polygons that are never seen. For example, if your game view is always from above, and your objects are never turned upside down, delete all polygons that are on the bottom of your objects.

-Avoid using the spheres, cylinders, and cones built into DB. They are sort of high-poly. Creating your own in a 3D modeler and loading them in is potentialy faster.

-Delete all of your unused bitmaps, images, and objects that are not being used. This will free up memory, and make your program run faster.

-Avoid sprites with 3D. Using textured plains locked to the camera are a much better ways of making displays.

I hope these help. I will post more when I think of them.

Good Luck.

Xander - Bolt Software

Why do the antagonists always have to look so cool?
Clarks
21
Years of Service
User Offline
Joined: 30th Oct 2003
Location: BALTIMORE,MARYLAND
Posted: 7th Dec 2003 03:24
This information will be very useful to alot of us.

Login to post a reply

Server time is: 2025-05-22 06:20:08
Your offset time is: 2025-05-22 06:20:08