Definition at line 83 of file wave_perf_bench.h.
84 {
87 return r;
88 }
91 for (u32 i = 0; i < iterations; ++i) {
92 sim->update();
93 }
97 const double cells_per_update =
static_cast<double>(
W) *
H;
99 / static_cast<double>(iterations);
103 return r;
104}
fl::unique_ptr< WaveSimulation2D_Real > makeBenchSim(u32 W, u32 H, LaplacianStencil stencil) FL_NO_EXCEPT
bool isValidIterations(u32 iterations) FL_NO_EXCEPT
bool isValidGrid(u32 W, u32 H) FL_NO_EXCEPT
double us_per_cell_per_update
double fps_at_one_update_per_frame
fl::u32 micros() FL_NO_EXCEPT
Universal microsecond timer - returns microseconds since system startup.
References fl::FL_NO_EXCEPT, fl::wave_perf::WavePerfResult::fps_at_one_update_per_frame, H, isValidGrid(), isValidIterations(), makeBenchSim(), fl::micros(), fl::wave_perf::WavePerfResult::success, fl::wave_perf::WavePerfResult::total_us, fl::wave_perf::WavePerfResult::us_per_cell_per_update, fl::wave_perf::WavePerfResult::us_per_update, and W.