CreativeDesigner3D / home_builder_4

This is the home builder add-on that works with Blender 4
GNU General Public License v3.0
28 stars 3 forks source link

All operations are very slow [Home Builder 4.0.2] #7

Open Jsewill opened 4 months ago

Jsewill commented 4 months ago

I'm running blender 4.1 on arch linux. Every Home Builder operation in the 3D view, that I have tried, is extremely slow, especially dragging products. It only gets worse as more items are added to the scene. It looks like an awesome addon, and I'd like to get it functioning properly on my system. Terminal output shows a bunch of these errors:

ERROR IN obj_ray_cast <bpy_struct, Object("Pull 8in (203mm) Bar.029") at <redacted>>

I tried it on a windows machine, and it is not slow at all.

CreativeDesigner3D commented 4 months ago

I have heard of users running into this issue on Linux. If they download the official build from blender.org it seems to work fine.

Jsewill commented 4 months ago

There's also an issue on the Home Builder 3 repository that mentions it too: https://github.com/CreativeDesigner3D/home_builder/issues/4

The official build produces the same results. New products are almost unusable after a certain point.

CreativeDesigner3D commented 4 months ago

I'm not sure why it would work fine on windows and not Linux. I will do some research. I am not very familiar with Linux, so it might take me a bit to figure out what is going on.

Christian-Prather commented 2 months ago

I am also experiencing this with Blender 4.1.1 and home builder.

Walls and dragging in all products lags, is unresponsive and many times crashes Blender. Running Ubuntu 22.04

Happy to help fix / give more info if there is a place you suspect might be the issue. Never done a blender add on but experienced with Linux and a software dev if you would like some assistance as I love the tool.

CreativeDesigner3D commented 2 months ago

Yeah I would love some help determining what the issue is. Everything is working fine on Windows. I would expect the issue has something to do with the ray cast function in the Blender Python API. I don't know why that would work differently on Linux.

Christian-Prather commented 2 months ago

Ya I am running it on windows currently and it is very snappy. I havent looked too deep into your code is there a particular section you suspect that calls into that API? I can dive more into it this afternoon and see if I notice anything obvious.

CreativeDesigner3D commented 2 months ago

The module python_libs\pc_lib\pc_snap.py is the main file that calculates the snap location during placement. If the issue is with ray cast that would be a good place to start. Thanks.

Christian-Prather commented 2 months ago

Okay sounds good ill dive in and see what I learn.