Skip to content

Commit 29df91f

Browse files
committed
added additional counter for the series approximation skip
1 parent 6af7fd9 commit 29df91f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/renderer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ impl FractalRenderer {
292292
&self.center_reference,
293293
&self.progress.series_validation);
294294

295+
self.progress.min_series_approximation.add(self.series_approximation.min_valid_iteration);
296+
295297
self.data_export.maximum_iteration = self.maximum_iteration;
296298

297299
tx.send(()).unwrap();

src/util/progress.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub struct ProgressCounters {
66
pub reference: Arc<RelaxedCounter>,
77
pub reference_maximum: Arc<RelaxedCounter>,
88
pub series_approximation: Arc<RelaxedCounter>,
9+
pub min_series_approximation: Arc<RelaxedCounter>,
910
pub series_validation: Arc<RelaxedCounter>,
1011
pub iteration: Arc<RelaxedCounter>,
1112
pub glitched_maximum: Arc<RelaxedCounter>,
@@ -17,6 +18,7 @@ impl ProgressCounters {
1718
reference: Arc::new(RelaxedCounter::new(0)),
1819
reference_maximum: Arc::new(RelaxedCounter::new(maximum_iteration - 1)),
1920
series_approximation: Arc::new(RelaxedCounter::new(0)),
21+
min_series_approximation: Arc::new(RelaxedCounter::new(0)),
2022
series_validation: Arc::new(RelaxedCounter::new(0)),
2123
iteration: Arc::new(RelaxedCounter::new(0)),
2224
glitched_maximum: Arc::new(RelaxedCounter::new(0)),
@@ -26,6 +28,7 @@ impl ProgressCounters {
2628
// TODO just set these to zero rather than reset
2729
// Reset without the series approximation changed
2830
pub fn reset(&mut self) {
31+
self.min_series_approximation = Arc::new(RelaxedCounter::new(0));
2932
self.series_validation = Arc::new(RelaxedCounter::new(0));
3033
self.iteration = Arc::new(RelaxedCounter::new(0));
3134
self.glitched_maximum = Arc::new(RelaxedCounter::new(0));

0 commit comments

Comments
 (0)