What kind of code library? Doing this 100 times per tick should still be fast I think (I'll do some tests)
However doing things a million times per tick in Lua is not recommended anyway.
Okay doing it 10 times a tick goes by unnoticed. 100 times adds up to 3% of my CPU (including excessive logging and passing 3 arguments) all in debug mode. When I disable the logging it uses 0% of my CPU.
In release mode it uses 0~1% CPU with logging
Looks pretty fast to me, I logged something in the log every time the function was called and that seems to be the biggest bottleneck.
No logging, debug mode 10000 calls per tick uses 0~1% of my CPU
However doing things a million times per tick in Lua is not recommended anyway.
Okay doing it 10 times a tick goes by unnoticed. 100 times adds up to 3% of my CPU (including excessive logging and passing 3 arguments) all in debug mode. When I disable the logging it uses 0% of my CPU.
In release mode it uses 0~1% CPU with logging
Looks pretty fast to me, I logged something in the log every time the function was called and that seems to be the biggest bottleneck.
No logging, debug mode 10000 calls per tick uses 0~1% of my CPU