How ron0studios/orbitsim works
Project type and purpose
• OrbitSim is a native C++ desktop application for simulating and visualizing N-body gravitational systems using the Barnes-Hut treecode.
• It integrates a multithreaded simulation core with a real-time GUI and rendering engine based on ImGui and SFML/OpenGL.
File structure
• Top-level “src” contains the simulation engine (Simulator.cpp/.h), data structures (Body, QuadTree), shaders (fragment.frag, shader.frag), threading header (ctpl.h), and the application entry point (main.cpp).
• “cmake_modules” and CMakeLists.txt define a cross-platform build, pulling in dependencies like ImGui-SFML and SFML.
• Runtime assets and settings (imgui.ini) and build/ dependency folders reflect the use of CMake with external-project/subbuild for ImGui and SFML.
README insights
• The README emphasizes the Barnes-Hut algorithm, a linear/quadtree storage for speed, multithreading for force updates, and ImGui-SFML for the GUI overlay.