Jump to content
  • entries
    4
  • comments
    8
  • views
    6,427

A few more screenshots, working doors


blueapples

3,911 views

 Share

Have a simple portal door system working with an interior map I've just started working on today.

 

One issue I'm running into with this setup is that the exterior map is completely unloaded when moving into an interior map. This causes a huge load time when you exit the building. I'd really like to be able to optimize some of that but so far I'm pretty much drawing a blank. Maybe it's a bit too late, will think on it more tomorrow.

 

blogentry-17500-0-30334600-1468732795_thumb.png

 

blogentry-17500-0-65796200-1468732693_thumb.png

 

blogentry-17500-0-11922800-1468732706_thumb.png

  • Upvote 1
 Share

5 Comments


Recommended Comments

The interior lighting and design looks great!

 

If it becomes prohibitive, keep a pooling system and only unload mesh and material objects that you don't need to reuse. Of course, then you would need to implement your own map loading logic and only have one map since the map file isn't documented. That kind of seems like a lot of work. I think a streaming system would be beneficial here so that you could load stuff as you get close.

Link to comment

You will want to keep 1 instance of all the textures/models you will ever use. Otherwise you'll run into pauses while loading.

Link to comment

You will want to keep 1 instance of all the textures/models you will ever use. Otherwise you'll run into pauses while loading.

If your maps share a lot of resources then I would recommend creating a new world, loading a map, and then clearing the old world, as this will avoid reloading of any files that appear in both maps, since they won't get deleted.

  • Upvote 3
Link to comment

After Josh's suggestion, I am currently using a stack structure in Lua to keep track of "outer" worlds, which I then pop off and reactivate to exit an area. I think what I might do to keep video memory use constant and reduce interior load times is to place a bunch of the interior assets in an off-map area of the main map, so their resources are loaded on startup and then stay in memory. I'm okay with loading a few assets when moving into interiors if they are unique to that "tree" of maps, if that makes sense, since they will only be loaded/unloaded the first time you enter each area.

 

The biggest issue I'm running into now is that with exterior and interior assets I'm already pushing 950MB of video memory. Definitely going to need an extreme optimization pass. Or more like passes.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...