libsm64 / libsm64-blender

Blender client for libsm64
574 stars 22 forks source link

Revisit performance, especially in relation to how geometry is passed from Blender to libsm64 #17

Open soup587 opened 2 years ago

soup587 commented 2 years ago

I'm assuming the addon works by building collision based off of existing meshes? Sometimes with relatively simple scenes it can take minutes to build everything and unfreeze Blender. As an example, try placing the laptop from the cube_diorama demo file, which takes about 1-2 minutes on my 2600x to setup

jaburns commented 2 years ago

Yeah there hasn't been much time spent on optimization of anything yet.

JamesO2x commented 1 year ago

Something related to this that I think would improve performance a lot: The option to select a specific Collection in blender to let LibSM64 define as the collision geometry. This way LibSM64 doesn't attempt to process the ENTIRE blender file's geometry all at once,

This actually would solve multiple problems: