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

Fix: Don't duplicate buffer views that are referenced multiple times. #474

Closed
wants to merge 1 commit into from

Conversation

freezy
Copy link

@freezy freezy commented Apr 10, 2019

This PR adds a reference to each processed view buffer and doesn't re-add it when matched. It avoids resources being duplicated. This PR fixes #416.

The map is stored in the root's pipeline extras. It's an object, since I wasn't sure if using Map wouldn't introduce any issues with old browsers.

Note that this doesn't apply to buffer views who share the same segment in a buffer, those would still be duplicated.

@lilleyse
Copy link
Contributor

Thanks for this fix @freezy, I'll try to review later this week.

Can you send over a CLA if you haven't already?

https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md#contributor-license-agreement-cla

@freezy
Copy link
Author

freezy commented Apr 10, 2019

Oh, sorry I didn't know there was a CLA to sign. In this case I prefer maintaining my own fork.

@lilleyse
Copy link
Contributor

lilleyse commented Jun 8, 2019

@freezy I opened #483 to fix the problem.

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.

Duplicates image data for images that originally share the same buffer view
2 participants