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

Encoding speed issue when using draco_encoder.js in web browser environment. #1073

Open
chajooyeong-ndotlight opened this issue Jul 2, 2024 · 0 comments

Comments

@chajooyeong-ndotlight
Copy link

chajooyeong-ndotlight commented Jul 2, 2024

Hello,

I am currently testing the compression of a specific 3D model using Draco.

Most models are working correctly.
However, when encoding a specific .glb file in the browser using the draco_encoder.js bundle,
it takes over 4 minutes or freezes.

The same file encodes at a normal speed of about 500ms in the Node.js environment using the draco_encoder_nodejs.js bundle.

Why is there a significant difference in encoding time between the web browser environment and the Node.js environment for this specific model?

The model is approximately 13.6MB and has two geometries.
One of them contains position and normal buffers composed of a Float32Array with a length of 842,748.
Could this be affecting the slow encoding in the web browser?

I used the gltf-transform library to conduct the encoding tests in each environment.

Thank you for your response.

@chajooyeong-ndotlight chajooyeong-ndotlight changed the title draco_encoder.js encoding speed issue in web browser Encoding speed issue found when using draco_encoder.js in web browser environment. Jul 2, 2024
@chajooyeong-ndotlight chajooyeong-ndotlight changed the title Encoding speed issue found when using draco_encoder.js in web browser environment. Encoding speed issue when using draco_encoder.js in web browser environment. Jul 2, 2024
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

No branches or pull requests

1 participant