Game Development Community

Game take long time to load......why?

by mohanmartin · in Torque Game Builder · 06/23/2008 (3:44 am) · 2 replies

HI,

i have completed a hidden objects game in TGB with 50 levels to play

my game contains..

60 cs files
140 GUIs
lot of png images in t2d scenes

my game starts with splash screen, then title, then mainmenu, then into game, all working properly, but when i run the final "MyGameName.exe" (after build) it takes long time to display the splash screen.

what is the reason for this?

"Lot of CS and GUIs?" or "Lot of graphics?"

i execute "game.cs" in main.cs, and execute all "other cs files" in game.cs

But, downloaded games form BigFish, Oberon and Real Arcade like other portals are loading quickly even if they have more than 50 levels to play.

how can i solve this?

#1
06/23/2008 (4:04 am)
My guess is that you are "preloading" all of your objects. This is a pretty bad way of managing assets in an actual game. I would suggest, to start with, disabling the "preload" option in the majority of your datablocks. Also, make sure that you do not execute all of your .cs and .gui files upon loading the game. I would strongly recommend that you only execute levels when loading that specific level.

It doesn't matter how many assets you have in your game, as long as you load them when they are needed and not all from the start you should be fine.

Also, just remember that you are not allowed to release a TGB game without the licence for TGB. I might also suggest that if you do indeed own a TGB licence, you post questions like this in the private forum, as more experienced users lurk there and may be able to offer more insight.
#2
06/23/2008 (11:05 pm)
Thanks Mr. Phillip OShea, its working well.

But the problem is the splash screens are not displayed, in the console window the splash GUIs are executed well, the game starts with directly in the title screen.

Any datablocks for GUI images? to enable preload

Thanks again