-
Alexis SALZMAN authored
xNoDeltaTime class was bugged. Now this class is ok and rigorously having the same API as xDeltaTime class. With this class that cost nothing (all call to instance method are optimized out by compiler) we can now consider to let monitoring instruction to stay in the middle of the code. No more dirty macros are needed around those instructions. Only at creation time the instance created is either a xNoDeltaTime or a xDeltaTime object (and macro if necessary appears only at this level) A small atomic test case check that xNoDeltaTime do not cost anything. Be careful to not encapsulated a xNoDeltaTime or a xDeltaTime object into a std::function. You would alleviate all the effort to make xNoDeltaTime to cost nothing. Because std::function itself do cost and keeping monitoring instructions in the code would then degrade performances.
487ba92c