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.

Newcomers DBPro Corner / Unloading everything

Author
Message
Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 3rd Feb 2009 15:05
Hello everybody,

I was wondering if there is a command to unload all currently loaded content so a next map can be loaded. Blitz 3D uses 'clear world' for that.

Is there something similar in DB-Pro?


Thanks!

Regards,
Sph!nx
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 3rd Feb 2009 15:16
I think theres a flush graphics memory or something similar.

This clears all objects, bitmaps and images, but not sound and music files (obviously, lol)

Failing that, you'll have to write a little function to do it for you.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Feb 2009 16:06
FLUSH VIDEO MEMORY is the one you're referring to.

You can use IF SOUND EXIST(), IF OBJECT EXIST() and iterate through the various entities.

I always have arrays associated with objects etc, to store additional data. In the array I store the entity ID number, so it's easy to account for everything.

Sph!nx
15
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 3rd Feb 2009 16:32
Thanks guys!

Regards,
Sph!nx

Login to post a reply

Server time is: 2024-09-28 02:34:06
Your offset time is: 2024-09-28 02:34:06