Can I turn off runtime updates once the environment is loaded up?

Hi there, I am using google tiles API, and have loaded up Manhattan for my VR app. The problem is that it takes several moment for the environment to load up, and once the player moves the head around everything starts to load up again, and again, and again. So you pretty much have to stand still and look at one direction to see the scenery. Is there a way to set it up to cash information into the headset? Or turn off real time updates once environment has been loaded up.

Try increasing the Maximum Cached Bytes property on the Cesium3DTileset. The Google photogrammetry tiles are very memory intensive, so a large cache is necessary in order to avoid unloading the tiles behind you to make room for the ones in front of you. If it’s too large, though, the danger is that you’ll run out of memory on the device. Increasing the value of the “Maximum Screen Space Error” property will help a lot, at the cost of lower detail, but it may be necessary in an untethered VR app.

I tried increasing it, as per your recommendation, and immediately all my scenes lost google tiles, with troubleshot error “The object is not configured to connect to Cesium Ion.” I checked Google console, and I can’t find any errors, the usage is still under 200,000. I even created another API key, and still no luck. Console error is showing Status code 429, I guess too many requests. Any idea how to get google tiles working again? None of my projects currently display google tiles, as I believe the problem is in the API key.

It sounds like it’s just coincidence that you hit your Google quota right then. I don’t think there’s any solution other than to wait, unfortunately.

I got it working today again, but I would like to try implementing your suggestions. Can you please give me an idea what values should I use without being blocked by google tiles for a day again. By how much should I increase Maximum Cached Bytes? I have default setting at 536870912, Maximum screen space error is set to 16.

Can you please give me an idea what values should I use without being blocked by google tiles for a day again.

I’m afraid I don’t know. This is one reason Google’s API is currently considered experimental. You should give them feedback about the quota.

By how much should I increase Maximum Cached Bytes?

Assuming you’re running on a desktop GPU with a decent amount of RAM, I would try 2-4 gigabytes. If you’re running on a mobile or VR device, that’s probably much too high, and you’ll instead need to increase the Maximum Screen Space Error value in order to reduce the detail. I’d try 32, 64, or even 128.