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

Cesium Map flickers when showing two or more labels #12231

Open
timeichfeld-msa opened this issue Oct 4, 2024 · 8 comments
Open

Cesium Map flickers when showing two or more labels #12231

timeichfeld-msa opened this issue Oct 4, 2024 · 8 comments

Comments

@timeichfeld-msa
Copy link
Contributor

timeichfeld-msa commented Oct 4, 2024

What happened?

Hello,

I added a model via CZML and played the animation through the timeframe.
When the ModelGraphic appears on the surface, the entire map blinks out. Sometimes it takes .25 seconds or more for the map to come back. It is very noticeable.

This did not happen in the last version 1.120 It is happening in 1.121 (October release)

During animation, when many hundreds of models are added to the map, all at close timeframes, it creates a strobe effect. The map flickers for each item initially placed on the map. Once the item is on the map, it does not flicker.

Please play through the sandcastle example an dlet it loop a couple times. you will need to reload th emap to reproduce the effect. (click 'run' again)

Reproduction steps

  1. navigate to Sandcastle Example
  2. Run the animation.
  3. When the modelGraphic is first shown on the map, the entire map dissappears for a moment.
  4. Once the item has been shown on the map, the map does not flicker when the model dissappears and reappears on the map. (loop or use the time controls).
    ...

Sandcastle example

sandcastle

Environment

Browser: chrome (any)
CesiumJS Version: 1.121
Operating System: windows

@ggetz
Copy link
Contributor

ggetz commented Oct 11, 2024

Thanks for the report @timeichfeld-msa!

Just to clarify, I see the blink in version 1.122, but not 1.121. Is this the same on your end? Or are you indeed seeing this in 1.121?

@ggetz ggetz added the needs feedback On hold until additional info is supplied label Oct 11, 2024
@timeichfeld-msa
Copy link
Contributor Author

Hi Gabby, yes, sorry about that, I see the flicker in 1.122, not 1.121

Thanks much :)
-Timothy

@ggetz
Copy link
Contributor

ggetz commented Oct 25, 2024

As pointed out in #12261, this appears to be due to the label, not the model itself.

For instance, id I comment out the label property in the CZML, the issue does not appear.

@netcanol
Copy link

As pointed out in #12261, this appears to be due to the label, not the model itself.

For instance, id I comment out the label property in the CZML, the issue does not appear.

It is OK with one label, and flashes when there are more than two

@ggetz ggetz changed the title Cesium Map flickers when showing a model for the first time. Cesium Map flickers when showing two or more labels Nov 8, 2024
@ggetz
Copy link
Contributor

ggetz commented Nov 8, 2024

Also reported in #12287

@edgexie
Copy link

edgexie commented Nov 11, 2024

As pointed out in #12261, this appears to be due to the label, not the model itself.

For instance, id I comment out the label property in the CZML, the issue does not appear.

yes, when only add an entity with label, the problem will appear

pakb added a commit to geoadmin/web-mapviewer that referenced this issue Nov 15, 2024
there's a problem with our label layer and version 1.121 and further (flickering black frame when zooming/panning, there's an issue on the Cesium tracker for that here : CesiumGS/cesium#12231 )
pakb added a commit to geoadmin/web-mapviewer that referenced this issue Nov 15, 2024
there's a problem with our label layer and version 1.120 and further (flickering black frame when zooming/panning, there's an issue on the Cesium tracker for that here : CesiumGS/cesium#12231 )
pakb added a commit to geoadmin/web-mapviewer that referenced this issue Nov 15, 2024
there's a problem with our label layer and version 1.120 and further (flickering black frame when zooming/panning, there's an issue on the Cesium tracker for that here : CesiumGS/cesium#12231 )
@ggetz
Copy link
Contributor

ggetz commented Nov 21, 2024

I have this tagged as "priority - next release" since it is a regression we'd like to see get fixed ASAP. Unfortunately we have not gotten a chance to get to the bottom of it just yet.

I'll leave the label so this issue does not get lost; but at this point it's unlikely we'll get a fix into the next release on Dec 2. CC @jjspace

@pakb
Copy link

pakb commented Dec 3, 2024

Seems to be fixed with latest update (1.124.0) at least that's the case on my side

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

No branches or pull requests

5 participants