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 / Media loading techniques

Author
Message
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 4th Nov 2003 03:34
Hi,
I just recently finished v1 of a little project and I want to now go back and optimize the speed. Is it faster to load all the media at once and then just use it at will at different spots in your program, or load each media item only when you need it? It's a small 2d program with not much in it, but since I load everything at the beginning it takes a while for it to start up, and there's a nasty blank screen for a couple of minutes before it goes. Just about anything would help.

thank you,
Juvy

Juvenile Industries
Current Project: The First Room (FPS)
Side Projects: SHIPWRECK, the boss's school project
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 4th Nov 2003 06:50 Edited at: 4th Nov 2003 06:53
Leave it where all your media is loaded first up (it prevents the program running really slowly during in-game loading)

To get rid of the "black screen" stick in a load/progress bar function, Like this one:



To see it working, use this:



Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 7th Nov 2003 00:39
thanks! I'm still finding time to implement in the code, but I checked out your demo and it looked like exactly what I needed.

thanks JessTicular!
Juvy

Juvenile Industries
Current Project: The First Room (FPS)
Side Projects: SHIPWRECK, the boss's school project

Login to post a reply

Server time is: 2025-05-21 10:09:57
Your offset time is: 2025-05-21 10:09:57