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

Update Cesium private variables in render loop #433

Merged
merged 1 commit into from
Jan 23, 2017
Merged

Update Cesium private variables in render loop #433

merged 1 commit into from
Jan 23, 2017

Conversation

schmidtk
Copy link
Contributor

Updated the tile checks in olcs.AutoRenderLoop#postRender to match those used in Cesium.Camera#update. Considered using the _suspendTerrainAdjustment private flag in the Cesium camera, but that seemed more fragile to change and less clear to someone trying to understand the olcs code.

@schmidtk
Copy link
Contributor Author

schmidtk commented Jan 20, 2017

To test, turn on the render loop in any example:

ol3d.enableAutoRenderLoop()

Then watch the CPU usage of the tab in Chrome's task manager. Previously the tab would be spinning on the caught error, now it should drop to ~0%.

Copy link
Member

@gberaudo gberaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @schmidtk.

@gberaudo gberaudo merged commit fc863aa into openlayers:master Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants