Hello,
I'm analyzing tfs for some time and my main feeling is: It is quite complicated to avoid racing conditions while developing custom systems or even in simplier situations for example: When monster dies, there is a delay between "onDeatch" function call. Now you have to perform deep architecture analyze if onDeatch can be called immediately when hp <= 0 detected.
What do You think about using more smart pointers?
One Tfs maintainer proposed intrusive_ptr from boost, but I'm not really convinced, that it would be safier/easier than using current "intrusive ptr" implementation.
What about performing deep analyze and convert as much dynamic pointers to unique_ptr and use more shared_ptrs ?
Do You think, that shared_ptr will highly decrease performance or will make huge ram footprint ?
Regards,
Mariusz
I'm analyzing tfs for some time and my main feeling is: It is quite complicated to avoid racing conditions while developing custom systems or even in simplier situations for example: When monster dies, there is a delay between "onDeatch" function call. Now you have to perform deep architecture analyze if onDeatch can be called immediately when hp <= 0 detected.
What do You think about using more smart pointers?
One Tfs maintainer proposed intrusive_ptr from boost, but I'm not really convinced, that it would be safier/easier than using current "intrusive ptr" implementation.
What about performing deep analyze and convert as much dynamic pointers to unique_ptr and use more shared_ptrs ?
Do You think, that shared_ptr will highly decrease performance or will make huge ram footprint ?
Regards,
Mariusz
Last edited: