Jump to content

Terrain Loader Causes Game to Lose Focus


Diggidy

Recommended Posts

I have noticed when the terrain loader is loading terrains it causes the game to lose focus (mouse becomes visible) in editor and build.

Also, the terrain loading is significantly slower from Gaia Pro: 3.3.0 to 3.3.6. Not sure if I missed a step when upgrading or something of that nature.

Unity: 2021.3.25f1
Gaia Pro 3.3.0-c5
               3.3.6 -c5

Link to comment
Share on other sites

Correction, the game doesn't lose focus but the mouse becomes visible. This appears to be associated with AsyncOperation which I am assuming the terrain loader uses.

Link to comment
Share on other sites

Turns out there was a conflict with AsyncOperation and another script that was trying to gain access to the mouse.

Link to comment
Share on other sites

On 5/17/2023 at 3:15 AM, Diggidy said:

Also, the terrain loading is significantly slower from Gaia Pro: 3.3.0 to 3.3.6. Not sure if I missed a step when upgrading or something of that nature.

@Diggidy What changed in that regard between those versions is that there is a new option in the Terrain Loader Manager to call Resources.UnloadUnusedAssets automatically when terrain tiles unload.
This has the advantage of immediately freeing up memory on tile unload, but the disadvantage that this is a costly operation that also triggers garbage collection, which might be the cause for the performance issue you are seeing. You can try to deactivate this option here:


image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...