Skip to content

Request Render Mode spotty with Entities #12543

Open
@ggetz

Description

@ggetz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions