spirv: call Stimulus::at
instead of Stimulus::eval_into
this *lowers* perf from 595 fps -> 562 fps
This commit is contained in:
@@ -245,8 +245,13 @@ where
|
|||||||
for y in 0..dim.y() {
|
for y in 0..dim.y() {
|
||||||
let this_slice;
|
let this_slice;
|
||||||
(this_slice, undispatched_backing) = undispatched_backing.split_at_mut(dim.x() as usize);
|
(this_slice, undispatched_backing) = undispatched_backing.split_at_mut(dim.x() as usize);
|
||||||
let view = OffsetDimSlice::new(Vec3u::new(0, y, z), Vec3u::new(this_slice.len() as u32, 1, 1), this_slice);
|
s.spawn(move |_| {
|
||||||
s.spawn(move |_| stim.eval_into(t_sec, feature_size, view));
|
for (x, out) in this_slice.iter_mut().enumerate() {
|
||||||
|
*out = stim.at(t_sec, feature_size, Index::new(x as u32, y, z));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// let view = OffsetDimSlice::new(Vec3u::new(0, y, z), Vec3u::new(this_slice.len() as u32, 1, 1), this_slice);
|
||||||
|
// s.spawn(move |_| stim.eval_into(t_sec, feature_size, view));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user