Driver: update TODOs
This commit is contained in:
@@ -32,7 +32,6 @@ use std::time::Instant;
|
||||
pub struct Driver<R, S, Stim=DriverStimulusDynVec<R>> {
|
||||
state: S,
|
||||
renderer: Arc<MultiRenderer<S>>,
|
||||
// TODO: use Rayon's thread pool?
|
||||
render_pool: JobPool<S, ()>,
|
||||
measurements: Vec<Arc<dyn AbstractMeasurement<S>>>,
|
||||
stimuli: StimAccess<R, Stim>,
|
||||
@@ -530,6 +529,7 @@ impl<R: Real, T: DriverStimulus<R> + Send + 'static> StimAccess<R, T> {
|
||||
let stim = diag.instrument_stimuli(|| {
|
||||
let stim = stim.lock().unwrap();
|
||||
let opt = stim.optimized_for(meta, step);
|
||||
// TODO: remove this box. RenderedStimulus is already heap allocated, so no perf diff?
|
||||
Box::new(opt.as_ref().rendered(
|
||||
meta.time_step().cast(),
|
||||
// TODO: convert this to an integer
|
||||
|
Reference in New Issue
Block a user