driver: TODO: split diagnostics into their own struct

This commit is contained in:
2022-07-28 02:06:34 -07:00
parent c82aab50a2
commit 15fc7b91dc

View File

@@ -22,6 +22,7 @@ pub struct Driver<S> {
// TODO: use Rayon's thread pool? // TODO: use Rayon's thread pool?
render_pool: ThreadPool, render_pool: ThreadPool,
render_channel: (SyncSender<()>, Receiver<()>), render_channel: (SyncSender<()>, Receiver<()>),
// TODO: split out into a Diagnostics struct
time_spent_stepping: Duration, time_spent_stepping: Duration,
time_spent_on_stimuli: Duration, time_spent_on_stimuli: Duration,
time_spent_prepping_render: Duration, time_spent_prepping_render: Duration,