Commit 88d09350 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron
Browse files

[SIM] Adapt nb_prefetch_frames to round-robin configuration

parent 2fd67ecf
......@@ -125,7 +125,8 @@ namespace detectors::simulator::hw
m_latency_time = params.acq.latency_time;
// Resize the circular buffer
m_buffer.resize(std::min(params.det.nb_prefetch_frames, params.xfer.time_slice.count));
auto nb_prefetch_frames = params.det.nb_prefetch_frames / params.xfer.time_slice.stride;
m_buffer.resize(std::min(nb_prefetch_frames, params.xfer.time_slice.count));
auto apply_hw_image_proc = [roi, bin = params.img.binning, flip = params.img.flip](auto const& src,
auto const& dst) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment