10.01.2017, 18:22
Quote:
Hmmm.. Good point PrO.GameR about the second question..
It soo interesting. *-* I know timers have different purpose, but I'm talking about optimization, earning time during the execution in game. |
PHP код:
public OnPlayerUpdate 198389 3.62% 41.1 0.2 37.3 30.61% 1026.6 5.2 99.3
normal Callback_IsDefined 1929369 46.20% 524.6 0.3 65.8 29.57% 991.6 0.5 92.1
native strcmp 48956298 41.15% 467.2 0.0 53.2 13.93% 467.2 0.0 53.2
Not even a little bit of lag on sight but 50 million strcmp calls!
You wanna know how much my highest performance heavy timer callback did?
PHP код:
public Something 1939 0.01% 0.1 0.1 1.4 0.05% 1.6 0.8 48.9