Jump to content

  • Log In with Google      Sign In   
  • Create Account


Game character and scene managing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 greenzone   Members   -  Reputation: 672

Like
0Likes
Like

Posted 25 March 2013 - 10:10 AM

OK so I have like a scene i want to create in my game. I load the scene on initialization as well as a few of the game characters. now i want to have the user run around interact with what is loaded for a bit. but now i want to introduce new characters and potentially updates to the scene, such as a new buildings or area to the scene. How do i store that which is not shown at the beginning. currently when i load characters or geometry from a file after the original initialization of the scene it halts the game, and once its loaded everything is fine again. but how do i prevent this having everything pause while things are loading? 

 

How do people store geometry data with their programs to be used later rather then loading the geometry on the fly?


Edited by greenzone, 25 March 2013 - 01:58 PM.

J-GREEN

Greenpanoply

Sponsor:

#2 Jutaris   Members   -  Reputation: 473

Like
2Likes
Like

Posted 25 March 2013 - 03:03 PM

 Generally, You should pre-load anything that takes a measurable amount of time to, well, load, before you need to use it.

 

 

In your case, anything you're going to potentially need in the scene should be loaded up front during your existing loading period.

 

 

A more efficient method might be to start pre-loading additional assets on a background thread. You'd need to be able to accurately predict when a resource will be needed so that it can be loaded appropriately (alternatively, you just start pre-loading ALL the optional resources after the primary ones are loaded). Be wary of this approach though as attempting to access your objects before/while they're loading is in most cases going to end poorly.

 

Really though, just loading everything you might need for your scene is probably going to be good enough.


My Site -- My Music  -- My Ramblings -- My Game

 Basic Flying Rules:Try to stay in the middle of the air. Do not go near the edges of it. The edges of the air can be recognized by the appearance of ground, buildings, sea, trees and interstellar space. It is much more difficult to fly there.

Come join us for some friendly game dev discussions over in XNA Chat!





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS