I have now done the code for customising the log base for the size calculation, but this requires doing two log calculations per call rather than one. The sizes can be cached but in grid based mode it has to use an unordered_map to fetch some of the cached sizes which means it runs slightly slower than before. However, hopefully I will be able to make some changes to how the grid based system works, if it can be made much faster overall then the difference in the size calculation won't matter much.
arganoid
7
Posts
20
Followers
9
Following
A member registered Mar 10, 2019 · View creator page →
Creator of
Recent community posts
The C++ code can be downloaded from https://github.com/arganoid/ParticleUniverse
I am currently doing some work to allow for a config file. The calculation for the size is log e (mass) * 2.5f. I may add an option for customising this as one of the first config options.