frequently updated shared component data

I want an entity within a group to have an in-group shared value that is updated by manipulating the slider.

Typically, if an entity has a shared value, it uses SharedComponentData for that shared value, but it is not intended to be updated frequently.
Updating SharedComponentData would cause chunk reconfiguration and would take too long to process.
In my case, manipulating the slider causes the values to be updated too often.
I guessed that SharedComponentData could be updated once per chunk, and I searched for a way to do that, but I couldn’t find a way.

How do I have a value that is shared by entities in a group and updated frequently?

Also, do you have any other good ideas for solving this case?

There is also a thing called ChunkComponent.
Maybe you can combine the sharedcomponentdata to force you entities in group chunk and use the chunk component to store you frequently changing data.

2 Likes

Another option:

Have the slider be an entity, and reference that entity in a component.

1 Like