0xafbf / blender-datasmith-export

Blender addon to export UE4 Datasmith format
GNU General Public License v3.0
388 stars 49 forks source link

Performance issue with instanced geometry #27

Open ChristopherRotter opened 4 years ago

ChristopherRotter commented 4 years ago

Hi!

Exporting a model with a relatively small amount of instanced collections (60k Objects) already takes a long time for me (15mins+). Do you think it would be possible to optimize the exporter to better leverage instanced geometry, and/or make it run on multiple threads?

The generated file is also considerable in size (18MB), which seems unreasonable for a handful of simple shapes that are instanced heavily.

I don't know the details of the export process within your script, nor the datasmith file format, so I'm not sure how feasible this is. If you think there is room for big improvements, I might be willing to work on this myself. I'm primarily asking here to get a general idea of what can be done.

0xafbf commented 3 years ago

Hi @ChristopherRotter It's been a long time, so this maybe is not relevant anymore. I have done some work on performance improvements, so please check out the latest version and let me know how it works.

If you have a scene that is particularly problematic, I would love to try improving it. We can talk in the discord server, or if you want we could handle this by email privately.

Olisil commented 3 years ago

Hi, I've only made a couple of export tests.. It seems to work pretty good, but even if it's checked at export, I don't get for instance mirror modifier applied at export. Would optimally want a non-destructive approach and not have to go through all objects and apply manually. Using Blender 2.92 and Unreal 4.26.

france-tarantino commented 2 years ago

Bye! It's been a long time since this treat. I'm also having the same problem with exporting (Blender 2.92). If I use instances (for models containing numerous copies of identical objects in space), when I try to import the datasmith file into UE4 (4.26), the modifiers are not applied. Is there any solution?

Thank you very much for your work

0xafbf commented 2 years ago

Hey @france-tarantino Yes, this problem has been there from a long time and I think now has became more recurrent as the instancing usage has increased. Right now I'm preparing a new release that should handle the export with modifiers much better. I will update this issue when it is ready for you to test.

Thanks for your patience.