Skip to content

Request Render Mode spotty with Entities #12543

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

Open
ggetz opened this issue Mar 31, 2025 · 1 comment
Open

Request Render Mode spotty with Entities #12543

ggetz opened this issue Mar 31, 2025 · 1 comment

Comments

@ggetz
Copy link
Contributor

ggetz commented Mar 31, 2025

What happened?

Originally reported on the community forum

Here’s my use case: I have a geojson data source loaded (a polyline) , then I change the color or the thickness.
When I set my renderMode=false, everything happens as expected. But for performance reasons, I need to be in renderMode=true.

Changing the color is still functional, but changing the thickness is not.
Of course, I’ve added a call to scene.requestRender().

I can display my entity.
Then if I change the thickness, the entity is no longer displayed. I have to manually move the camera to display the path with the correct thickness.

I found this PR #11934 and this Sandcastle

In the sandcastle, the requestRender does not work too with 1.127 (which is the version I’m using in my app)

We've also identified a similar reproduction in the Rendering Performance Sandcastle. When the "mouseover picking" option is selected, the entity does not appear until the camera moves, or a new frame is rendered for an unrelated reason.

Curiously enough, the second case is only reproducible at larger viewport sizes.

Likely, this is due to the entities becoming "ready" for rendering after the next immediate frame.

Reproduction steps

No response

Sandcastle example

No response

Environment

Browser: All
CesiumJS Version: ID'd in 1.110 and 1.127
Operating System: All

@chdenat
Copy link

chdenat commented Apr 1, 2025

Thanks for reporting this.
I've enhanced the react workaround I've published on the forum but It's not functional at 100%.

I've another case where render mode is a problem. Changing layer color parameters like h,s,l , brightness, contrast

**edit ** the last case works after a call to viewer.scene.requestRender() :)

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

2 participants