Whats the performance impact for this mod? Has it been sampled (If you dont know what I mean, you can download visualvm and sample starsector to see the performance cost of specific methods and such)?
CPU wise it's on par with vanilla, maybe slightly faster. So anywhere between 1% to 4% of total CPU usage, depending on battle configuration. My code allocates more memory though (maybe that's a Kotlin thing?). Measured with Intellij profiler.
I try to optimize the code. For example, AI Tweaks uses a custom bounds collision checker that's about 5 to 6 times faster than the one in LazyLib. I use the saved cycles to run more logic more often, for better fire precision.