Gothic-UnZENity-Project / Gothic-UnZENity

Community rebuild of classical Gothic 1 and 2 in Unity engine. Currently focusing on a native VR implementation.
GNU General Public License v3.0
10 stars 2 forks source link

Loading performance: Disable Mesh + VOBs during loading #131

Closed JaXt0r closed 1 month ago

JaXt0r commented 2 months ago

Description

When we currently load the game, all meshes of world and VOBs will be loaded fully and disabled once culling kicks in, which is after everything is loaded. On VR devices loading starts to stutter more and more over time. Therefore let's disable all meshes/GOs once they're loaded immediately to save performance during loading. Image

Tasks

ThomasMountainborn commented 1 month ago

We also need to remove the old texture arrays before starting to load the textures of the new world to avoid going out of memory on device.