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 / game starting to take forever to compile/execute

Author
Message
Guruchild
23
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 29th May 2003 10:32
Hello, I'm building a unique fps/rpg style game that is fairly simple on premise but as I add more single primitive objects and now some sound effects and music files, the game takes an unneccesary amount of time to compile and run. The biggest hit came when I added 2 mp3 songs to the game, one played as the theme song on the main game menu screen and another is the in game music. I load them before the game loop and play them in the game. If there another method of including and playing these files that is faster? At this rate, when the game is finished it will take 2 hours to load and run and it'll run at like 2 fps. Any help/suggestions?

BTW I am currently running the game in 16 bit color, 1024x768 mode on a radeon 7200 (radeon 8500LE is fried at the moment). While the game gets 50-60 fps NOW, once its closer to completed I worry about the fps with all the shi.. er.. stuff I''ll be implementing.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 29th May 2003 10:50
there was a known bug with ATI performance loading times and its been squashed apparantly with a later patch.

depending on your media sizes and loading order usage can determine game start time.

EG: load only the music and menu code at the start before loading any part of the game.

Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th May 2003 12:29
Are you compiling the media into the exe?

If so, don't do that until the final build.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
Guruchild
23
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 29th May 2003 13:56
I figured it out, checking the option to compress the media included in the exe causes this huge slowdown in load times.

I am using DBPRO for reference in case I didn't mention that before.

Thanks!

Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 29th May 2003 19:56
Yeah, compression takes forever. Only do it if you're planning a final release.

If it starts taking too long anyways, try commenting out parts of the code you're not testing using Remstart and Remend.

--Mouse

Famous Fighting Furball

Login to post a reply

Server time is: 2026-07-11 08:33:37
Your offset time is: 2026-07-11 08:33:37