T.s.e
Wish I was old and a little sentimental
- Reaction score
- 133
Which would be more efficient? or ?
JASS:
JASS:
GetUnitState(... , UNIT_STATE_LIFE)
GetUnitState(... , UNIT_STATE_LIFE)
Should be GetWidgetLife... it takes only one argument.
Edit: Though that doesn't automatically mean a speed advantage... but since there can be multiple unit_state choices the C+++ code for that one is more complicated. But that are just some thoughts of me^^
[B]GetWidgetLife:[/B]
3.005, 3.069, 4.404, 5.406, 2.971, 2.945, 3.128, 2.904, 3.129, 3.043
[B]GetUnitState:[/B]
3.651, 3.615, 5.419, 3.727, 4.379, 3.791, 3.642, 6.398, 3.599, 4.556
Though that doesn't automatically mean a speed advantage... but since there can be multiple unit_state choices the C+++ code for that one is more complicated. But that are just some thoughts of me^^
Edit: Is there somewhere a readme about this "benchmarking"? I'm interested in how it works. For example I don't really know what kind of numbers you've posted.
loaddll("bin\\japi.dll")
loaddll("bin\\nativepack.dll")