freemocap / freemocap_blender_addon

Add-on to adapt the Freemocap Blender output. It can adjust the ### empties position, add a rig and a body mesh.
GNU Affero General Public License v3.0
12 stars 1 forks source link

Blender very laggy for some Blend files #8

Open philipqueen opened 6 months ago

philipqueen commented 6 months ago

For some .blend outputs from this addon, interacting with the .blend file is very slow. The controls in Blender are very laggy, and the viewport playback is as slow as 0.4 FPS. This does not appear to be an issue with my machine/running other things at the same time, because reexporting to Blender will sometimes create a new .blend that runs perfectly. I have not narrowed down what causes the difference much, but will use this issue to follow progress as I try to track it down.

My first guess is that this seems to only happen when the skelly mesh doesn't attach properly. There may be something going on with the mesh existing but not being able to render properly that is wasting computational resources.

philipqueen commented 6 months ago

Ok, I've been able to confirm my earlier suspicion. I got another slow blender output, and there was no visible skelly mesh. By turning off the skelly mesh view (clicking the eye button), I was able to get the playback to return to normal speed, and the lag went away. It returned to laggy controls and slow playback when I turned the skelly mesh view back on. This means the slow playback is related to a somehow unrenderable skelly mesh that Blender is still trying to render.

Ideally, we can find some way to identify this state in the add on, remove the broken mesh, and try redoing the mesh adding process.