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

Don't duplicate resources that are referenced multiple times #483

Merged
merged 7 commits into from
Mar 30, 2020

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Jun 8, 2019

Fixes #416

Follow up of #474 which was closed. This has the same basic idea but extends it to work with separate resources.

@ViliusLuneckas
Copy link

Hi @lilleyse, any plans to merge it soon and release to npm registry?

Copy link
Contributor

@likangning93 likangning93 left a comment

Choose a reason for hiding this comment

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

Thanks @lilleyse, just a couple small things:

lib/writeResources.js Outdated Show resolved Hide resolved
lib/writeResources.js Show resolved Hide resolved
lib/writeResources.js Show resolved Hide resolved
@lilleyse
Copy link
Contributor Author

@likangning93 all images, shaders, buffers now pass through writtenResourceMap, but yeah, ultimately only images and shaders will use it, not buffers.

This change handles all your comments and makes #483 (comment) OBE.

@likangning93
Copy link
Contributor

Thanks @lilleyse!

@likangning93 likangning93 merged commit 0f74cdf into master Mar 30, 2020
@likangning93 likangning93 deleted the duplicate-resources branch March 30, 2020 12:34
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
3 participants