Improve physical geometry, fluid solvers, audio, and profiling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user