A ResoniteModLoader mod for Resonite that optimizes distance calculation distance calculation for nearest user nodes. This was created mostly to learn about the modding infrastructure and likely will not have much in the way of performance impact.
With the mod, distances will be compared in square space rather than taking the square root for each and every distance operation. The square root is still taken when returning the distance for the node, but this only happens once rather than for each player/body node.
- Install ResoniteModLoader.
- Place NearestOptimizer.dll into your
rml_modsfolder. This folder should be atC:\Program Files (x86)\Steam\steamapps\common\Resonite\rml_modsfor a default install. You can create it if it's missing, or if you launch the game once with ResoniteModLoader installed it will create this folder for you. - Start the game. If you want to verify that the mod is working you can check your Resonite logs.