|
Post by Elmigo on Sept 29, 2017 7:46:01 GMT
I see from docs and examles that there are 2 ways control entities on the scene
1. With callbacks like ETHCallback_<entity_name> 2. Collect enities at array, iterate the array inside the scene update method and call entity.update manually
what way is more prefered, efficient and perfomanced?
|
|
|
Post by Admin on Sept 29, 2017 16:30:17 GMT
Personally I prefer using the callbacks. I have had hundreds of entities in a scene on a I3 with an intel hd 5500 and no slowdown, I haven't even touched using the arrays, as the callbacks have easily met all my requirements. Both are written in c++ in the engine and use pointers, so without an actual test I honestly don't know which would be faster.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 29, 2017 18:43:19 GMT
I am interested in this also, was always curious never found out. Maybe the Dev can chime in.
|
|