I am wondering what the best way to get entity component data from the entity data system on the client would be. For example if you have a health component and you want to update your game clients health bar. What would the best way to get that information out of the entity system?
The reason I am asking this question is because I just started doing some network testing at about 90ms pingtime, the way I was using getComponent and getEntity stalled the render thread because I was using those functions in the update loop of a appstate. This is obviously not the correct way. From what i can tell it would be best to get that kind of information in something like the sharedobjectupdater().
Any advice would be appreciated.