How do dynamically (un)registered event handlers behave?
Posted: Tue Jan 30, 2018 5:34 am
I'm wondering,
If you define on_tick handler in a mod, but then do script.on_event({defines.events.on_tick},nil)
Does it trully unregister and use no ups, or it remains lost somewhere and causes performance trouble ?
I know it works, because i have tried it, but does this actually unregister the event handler ?
If you define on_tick handler in a mod, but then do script.on_event({defines.events.on_tick},nil)
Does it trully unregister and use no ups, or it remains lost somewhere and causes performance trouble ?
I know it works, because i have tried it, but does this actually unregister the event handler ?