Page 1 of 2

Loading for big-project

PostPosted: Tue Oct 07, 2008 11:13 pm
by Azou
Yeah!
Let me explain this: can we have a code which loads game data when the project is big?
With that,the game won't be slow when we play it.

Re: Loading for big-project

PostPosted: Wed Oct 08, 2008 1:20 am
by makslane
Have you tried use activation regions?

Re: Loading for big-project

PostPosted: Wed Oct 08, 2008 5:24 am
by Spidy
can u explain more about activation region makslane please :roll:

Re: Loading for big-project

PostPosted: Wed Oct 08, 2008 12:48 pm
by makslane
Actors inside the 'Activation Regions' are loaded only when the view intersects the region.
The load process was projected to be fast.

Re: Loading for big-project

PostPosted: Wed Oct 08, 2008 11:41 pm
by BlarghNRawr
just put an activation region around each level or thing to be loaded and thats it

Re: Loading for big-project

PostPosted: Thu Oct 09, 2008 12:06 am
by j2graves
that's what I do

Re: Loading for big-project

PostPosted: Mon Oct 13, 2008 4:36 am
by Bee-Ant
I use separated level/stage in big project...and use no ActivationRegion.
But it seems I will use it on my current project :mrgreen: because too slow when in window mode :oops:
Changing the framerate just make it worse :roll:

Re: Loading for big-project

PostPosted: Tue Oct 14, 2008 3:55 pm
by Azou
Oh,Ok! :D

Re: Loading for big-project

PostPosted: Thu Oct 16, 2008 10:43 am
by Troodon
Sorry about semi off topic but what about a game where you have huge map where things should happen even very far from the view. I mean, the game concept wouldn't work if I'd use the activation regions because the idea is that you can build colonies far from the capital city. And a colony should for exmple produce wood even when you are in the capital. Also, long distance ships should really go from A to B so I couldn't load separate ged-files to simulate different continents/islands.
Would GE load the events faster if everything was invicible when not in view?

Re: Loading for big-project

PostPosted: Thu Oct 16, 2008 11:23 am
by makslane
Good question. In this case, you will need to use a big activation region or avoid to use activation region at all.

Re: Loading for big-project

PostPosted: Thu Oct 16, 2008 5:52 pm
by Bee-Ant
So this is why you're not online?
A project huh?

Well,i think its posible to use "separated-level" system. Using..argh..how to explain! I will make a demo.
Oh yah,the kind of game is platform or rpg?
Have you inactive all unimportant actor?such as background?

Re: Loading for big-project

PostPosted: Thu Oct 16, 2008 6:29 pm
by Thanx
Another way of doing it is creating a separate engine to handle these events, the engine should be in some actor always on screen. Or do these events depend on collisions?
If so you could also turn the map into a grid, and use different grid position data to determine when the actions have to be done. This way you can make small activation regions...

Re: Loading for big-project

PostPosted: Fri Oct 17, 2008 12:00 pm
by Bee-Ant
Do you mean with engine is an actor which control everything???not everything, but it controls most event...
such as saving and loading vars, pausing, unpausing, changing the value of global vars, etc...
Why dont you just use "view" as the engine???

Re: Loading for big-project

PostPosted: Fri Oct 17, 2008 12:50 pm
by Thanx
I didn't say you have to make a separate actor for it, the point is it's an actor that never gets unloaded.

Re: Loading for big-project

PostPosted: Fri Oct 17, 2008 1:22 pm
by Azou
Well,i have a question:
I followed the general advice(which was to use Regions.)
But,can we have
Collision/Any Side of Actor/Show activations regions ?
Cuz,my project is slooow!