Just for fun i have written a simple C++ 2D nbody fluid simulation in 4 different programming styles - just to see the differences in speed and maintainability.
Its like my "Fluid Sandbox" program i have written in the past, but 2D and without rigidbody interaction - maybe that will come later.
It would be great if you can compile and run it and check the results for yourself.
There is a built-in benchmark recording and rendering, so you can compare all 4 demos with your own system.
It was build in visual studio 2015/17 but it may compile on other compilers as well - because it uses simple syntax and default libraries, like glut, glew and opengl.
Feedback is welcome -> see the associated feedback thread.
You can find the project source here:
https://github.com/f1nalspace/nbodysimulation_experiment
Also if you just want to start it up, here is the executable:
http://root.xenorate.com/final/gamedev/nbodysimulation_experiment_v1.1.zip
Greetings,
Final