Hey guys,
I have a question regarding optimization of EventDispatchers. Basically I have my actor wich has an actor component which manage the adding and removal of tags for him. Other actors may want to know when certain tags are added or removed. So here is my question. For now I have mave a single event dispatcher on my tag manager, so whoever wants to know about that has to subscirbe to it and then I implement the logic of whether doing something or not in the other actor. That solution allows me to have only one dispatcher for all my subscribers so I don’t have to create a bunch of them for each tag. However, it means that each time a tag is changed all subscribed funtcions will be called even though they don’t need to know about all tags (just a branch out to false). Do you think that this is going to be too taxing on the system ? My goal is to create an RPG games, so I’m going to have several actors interracting with each other. Should I go with a more specialized solution ?
Thanks