简体   繁体   中英

How Load a Huge/heavy scene smoothly in Unity3d

I have a very very Big/Huge scene to load and I can't load it at once.

What I have tried so far is I divided the scene into multiple scenes and loading it into async manner as my character controller move . I am moving my character controller and accordingly loading (its near)scenes by matching its position. But it is not smooth. . .

How do I load big scene smoothly? what will be the strategy? Is this right strategy which I am doing or there is any other feasible and easy to use solution available.?

Try separate your scene into small chunks. When you move your character - just load new chunks and unload old. For example, this strategy uses minecraft.

You can't decrease loading time to zero milliseconds, but loading will be smooth. You can use chunks about 5x5x5 meters. And load from manager with coroutines.

Don't forget to use object pool pattern (because Instantiate it very costly) :)

UPD:

For example, this way use in plugins:

Uniblocks Voxel Terrain

MapMagic World Generator

Also, this plugins uses open world generation from 2d/3d noises (Perlin noise, etc.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM