Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix race condition in Entity batching. #2537

Merged
merged 1 commit into from
Mar 2, 2015
Merged

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Mar 2, 2015

Fixes #2514 (and other related issues as discussed on the forum).

The problem was that when static entities were updated, we would create a primitive to batch them. However, if the entities were updated again before the primitive was ready, we didn't remove it.

I don't have a good way to unit test this yet, but there is a Sandcastle example in #2514. Moer throughly testing these private classes is on the roadmap, but shouldn't hold up this fix (which lots of people are running into).

Fixes #2514 (and other related issues as discussed
[on the forum](https://groups.google.com/d/msg/cesium-dev/JOUCjnqeFKg/q5aAZb2faAMJ)).

The problem was that when static entities were updated, we would
create a primitive to batch them. However, if the entities were updated
again before the primitive was ready, we didn't remove it.
pjcozzi added a commit that referenced this pull request Mar 2, 2015
…ndition

Fix race condition in Entity batching.
@pjcozzi pjcozzi merged commit ea7d10d into master Mar 2, 2015
@pjcozzi pjcozzi deleted the primitive-race-condition branch March 2, 2015 18:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding entity after delay causes entities to not display
2 participants