Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple 3dtiles url #8742

Closed
sazima opened this issue Apr 10, 2020 · 4 comments
Closed

Support multiple 3dtiles url #8742

sazima opened this issue Apr 10, 2020 · 4 comments

Comments

@sazima
Copy link

sazima commented Apr 10, 2020

When I was testing, the loading of 3dtiles was limited by the browser, and only 6 requests could be concurrent at a time.

WX20200410-090819@2x.png

Can I support the following code to improve the request speed?

let url = ['http://t1.xxxx.com/3dmaps/Production_2.json', 'http://t2.xxxx.com/3dmaps/Production_2.json', 'http://t3.xxxx.com/3dmaps/Production_2.json', 'http://t4.xxxx.com/3dmaps/Production_2.json']
new Cesium3DTileset({
     url
    })

Thanks!

@OmarShehata
Copy link
Contributor

The maximum number of concurrent requests is limited by the browser. More concurrent requests doesn't necessary mean a faster application, see Kevin's write up on this here: #8549 (comment) and the general 3D Tiles request scheduler issue here #5509.

Your code snippet implies you're trying to load multiple 3D Tilesets in your scene. You can do this by making one new Cesium3DTileset call for each URL.

If you're still having issues in your app feel free to start a thread on the Cesium community: https://community.cesium.com/.

@lilleyse
Copy link
Contributor

Also RequestScheduler will be part of the public API in 1.69 which gives more control over the number of concurrent requests.

Specifically look at RequestScheduler.maximumRequestsPerServer. You can check out the documentation here: http://cesium-dev.s3-website-us-east-1.amazonaws.com/cesium/master/Build/Documentation/RequestScheduler.html

@mramato
Copy link
Contributor

mramato commented Apr 10, 2020

FYI, the actual concurrent request limit depends on the browser (Chrome uses 6) and the limit is also per-server (there is an additional overall limit of 10 for the page in Chrome I believe).

These limits go away or are much higher if HTTP/2 servers are used.

@sazima
Copy link
Author

sazima commented Apr 11, 2020

Thanks. Using `RequestScheduler' and HTTP/2 helped me a lot .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants