Open ptrgags opened 2 years ago
You should be able to use a fragment instead of a query parameter since the fragment doesn't get sent to the server. From https://www.webdevsplanet.com/post/url-parameters-vs-fragments:
The fragment identifier is only used by the browser and not sent in the HTTP requests to the server. You cannot collect or see them in your server-side code.
@lilleyse Hm it's definitely a thought. However,
Resource
, I see a couple places in the code there where it explicitly sets the fragment to empty string... was there a reason for this?If the fragment option doesn't pan out, what if there was a resource.extras
dictionary to store this information separate from the URL itself, but ResourceCacheKey
functions could still access it if present?
Ah this will be trickier if going through the Resource
class...
any news of this issue?
@ufolr There hasn't been any activity on this item recently.
If you'd like to add more information about your use case, that may help us prioritize.
If you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR.
Thanks!
@ggetz I have some 3dtiles data with hundreds tree instance witch are same model, so I make the model gltf out of cmpt file, and hope cesium can render trees with Instancing. As expected I can get higher performance, but it's very slow because this same issue.
my problem is same like this: this forum post
I'm searching is there any way to fix or bypass this issue?
In #10524, I had added a
compositeIndex
query parameter to URLs to fix a bug with.cmpt
tiles where some of the resources in theResourceCache
were being shared when they shouldn't be, leading to duplicate geometry rendering.However, this forum post shows the one downside to this approach. By adding a query parameter, now each network request to a shared resource is treated as distinct, and therefore the browser won't be able to cache the results correctly.
I'm not sure what the best fix is here, some thoughts:
compositeIndex
down to where it is used forResourceCache
. This might be several places, as the inner contents might need external resources.compositeIndex
parameter whenever making network requests?