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

Importing big models are slow #10

Open
fxgenstudio opened this issue Feb 8, 2021 · 2 comments
Open

Importing big models are slow #10

fxgenstudio opened this issue Feb 8, 2021 · 2 comments
Assignees

Comments

@fxgenstudio
Copy link

fxgenstudio commented Feb 8, 2021

Import a 256x256x128 model take more than 10 minutes to process.

One optimisation that can be done is to precalculate normals per faces into a table and don't use "generate_normals".

level1_1.zip

@fxgenstudio
Copy link
Author

fxgenstudio commented Feb 9, 2021

I added traces with time in ms for each steps with "monu1.vox" importation ...

Why combine_data is called 3 times ?

Importing: res://monu1.vox (scale: 0.1, file version: 150, greedy mesh: False)
num_models 1
Elapsed VoxFile Read:574 ms
Starting Generate Mesh...
combine_data size: 156942
combine_data size: 156942
combine_data size: 156942
Elapsed unify_voxels:3067 ms
Elapsed Gen mesh :3685 ms
Elapsed Gen surface :279 ms
Total Elapsed Generate Mesh:7052 ms

@CloneDeath
Copy link
Owner

Thanks! Off the top of my head, I believe it is called once per axis (x, y, and z).

This gives me enough data to start. I'll take a look tonight, and let you know if I have questions.

And I agree, 10 minutes is unacceptable.

@CloneDeath CloneDeath self-assigned this Feb 9, 2021
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

2 participants