Closed keeema closed 4 months ago
In normal circumstances the object groups have no impact on performance. Only lights and animations are known to affect performance (mainly memory). I would need the full model to see what's going on
I will send it to an email.
Hello Keema, the behaviour of light with object group is unpredictable, usually it is preferable to have multiple entity with the same light entity and different object id, if what you want to obtain is a led strip or a group light. I've tried to create a rotate object with one of your grouped object and it is working as expected. Also bear in mind that the card is not supporting too many lights. Lights are the most demanding for the model rendering in 3d (if you want to have the shadow effect).
OK, using light as switch might be the explanation for bad performance when I use it for gate or garage door. But what to use as simple switch instead of light? E.g. I have one entity for hide (the entity for door contact) and one entity for turning on and off but both are for garage door.
OK, I got it!
For entities other than light I can use gesture with domain switch and service toggle. And it can also be used to deal with many object ids for one light - it could be separated to one object for light and rest for gesture:
object_groups:
- object_group: SvetloVchod1
objects:
- object_id: '1476_795'
- object_id: '1455_774'
- object_id: '1435_754'
- object_group: SvetloVchod2
objects:
- object_id: '1458_777'
entities:
- entity: switch.sonoff_10010e9531
type3d: gesture
object_id: <SvetloVchod1>
gesture:
domain: switch
service: toggle
- entity: switch.sonoff_10010e9531
object_id: <SvetloVchod2>
type3d: light
light:
lumens: '800'
Thank you for you help!
I have model from sketchup exported via Collada to SweetHome, from SweetHome to obj and from obj to glb. It is fast in Sketchup or SweetHome and also in floor3d-card until I map object ids.
After mapping few object IDs and using them in entities it becomes very slow and twitchy.