Improve physical geometry, fluid solvers, audio, and profiling

This commit is contained in:
max
2026-10-30 18:57:56 +01:00
parent bf8621ad39
commit eb2b6366c2
130 changed files with 14649 additions and 862 deletions

View File

@@ -2,6 +2,7 @@
#include "FluidSim/Component.hpp"
#include "FluidSim/Fluid.hpp"
#include "FluidSim/RuntimeProfiler.hpp"
#include <cstdint>
#include <vector>
@@ -13,13 +14,15 @@ public:
std::uint64_t substep_count() const { return substep_count_; }
int minimum_substeps{4};
void add_component(Component& component);
void step(float dt);
void set_profiler(RuntimeProfiler* profiler) { profiler_=profiler; }
void step(float dt,bool profile_sample=false);
std::uint64_t step_count() const { return step_count_; }
private:
std::vector<Pipe1D>& pipes_;
BoundarySystem& boundaries_;
std::vector<Component*> components_;
std::uint64_t step_count_{}, substep_count_{};
RuntimeProfiler* profiler_{};
};
} // namespace fluidsim::port