November 5th, 2020
Ben & Jace Talk: Level Streaming
https://www.youtube.com/watch?v=omjFqZQV9fI&t=1212
Suggested Wiki Refrence Code
Topics
Transcription
Ben
And then we go to the real question that I've answered tons of times on the QA side.
It's the level streaming.
Level streaming?
Tell us about it.
Our world is chunked up into a lot of separate pieces because otherwise your memory would
It's just too much memory.
For fun, I can show you how much it can be in memory.
Let's go to the middle of the world.
Here we go.
This is
Jace
the memory
Ben
footprint.
Let's go to the right view.
Unreal is dying on it.
So this is all the memory that is on tile X3, Y3.
That, I think, is the Titan Forest.
Jace
Okay, so it says at least 1.5 gig.
Yes.
Ben
On
Jace
one
Ben
tile.
Yeah.
So when you stream it in, it checks what already exists in the world and skips that.
And then it loads in the data that's
Jace
still
Ben
needed.
That's pretty cool.
One thing to note here is we have 101 megabytes in the world itself.
And that means all the foliage that's painted and
Jace
objects that are
Ben
placed.
Jace
That's the big boy right there.
If we can cut that down a little.
And so how many tiles do we have?
Ben
30... Somewhere 36, I think.
32, 36.
Jace
And of course, they're not all 1.5 gig at least, but still, if you had them all loaded in.
And that would just be the maps only, not anything else to do with the game.
Yes, just the world.
Yeah.
Ben
So this is the tile that I talked about.
So as you can see, it's just a chunk of the world.
This shouldn't be there.
Jace
See, that's how you fix things.
Just delete it.
That shouldn't be there.
Bye.
I didn't delete it.
Ben
I hid it.
But yeah, so here you can see it's a chunk of the world that will be loaded in when you get near.
Yep.
And one thing we're going to do to optimize it for the players, so it's going to be less
less terrible for them.
We can split it up.
So we're going to have, instead of one tile, we're going to have four tiles for those.
That
Jace
way
Ben
the computer needs to only stream in a quarter of the data.
So it's going to be
Jace
much, much faster.
So how does that work then?
Are we just going to quadruple the number of tiles we have?
Or is it going to be...
Okay, so we're just going to add more tiles.
That's it.
There's nothing particularly fancy.
It's just manual labor.
To an extent.