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 / Faster: Sprites or Plain Objects?

Author
Message
Algae Man
23
Years of Service
User Offline
Joined: 11th Nov 2002
Location: Canada
Posted: 1st Jul 2003 22:53
In DarkBasic Classic, having sprites on the screen while 3d was running slowed the program down a fair bit. So everytime I wanted to have something 2d on the screen (like a fuel guage, for example) while 3d was running, I'd use a plain object locked onto the screen. Since DarkBasic Pro renders sprites just as if they were 3d objects, I was wondering if sprites would run just as fast as plains while 3d was running.

So my question is:

With Darkbasic Pro, can I now use sprites while 3d is running, and have the same fps as with using plains instead of sprites?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Jul 2003 23:15
If you switch the backdrop-save feature off, there should be no difference in speed.

DBPro uses 3D acceleration to render sprites
AlecM
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Concord, MA
Posted: 1st Jul 2003 23:55
ya, they really are the same thing.

Goto http://www.shellshockede.com
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 2nd Jul 2003 00:40
You can get the same effect as a sprite using

MAKE OBJECT PLAIN
LOCK OBJECT ON
DISABLE OBJECT ZDEPTH

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_103.zip

Login to post a reply

Server time is: 2026-07-17 13:58:26
Your offset time is: 2026-07-17 13:58:26