@@ -207,24 +207,14 @@ impl FractalRenderer {
207207 ) ;
208208
209209 let chosen_iteration = if self . experimental {
210- let mut test1 = ( ( self . series_approximation . probe_sampling - 1 ) as f64 * i as f64 / self . image_width as f64 ) . floor ( ) as usize ;
211- let mut test2 = ( ( self . series_approximation . probe_sampling - 1 ) as f64 * j as f64 / self . image_height as f64 ) . floor ( ) as usize ;
212-
213- if test1 >= ( self . series_approximation . probe_sampling - 1 ) {
214- test1 -= 1 ;
215- }
216-
217- if test2 >= ( self . series_approximation . probe_sampling - 1 ) {
218- test2 -= 1 ;
219- }
210+ let test1 = ( ( self . series_approximation . probe_sampling - 1 ) as f64 * i as f64 / self . image_width as f64 ) . floor ( ) as usize ;
211+ let test2 = ( ( self . series_approximation . probe_sampling - 1 ) as f64 * j as f64 / self . image_height as f64 ) . floor ( ) as usize ;
220212
221213 let pos1 = test1 * self . series_approximation . probe_sampling + test2;
222214 let pos2 = test1 * self . series_approximation . probe_sampling + test2 + 1 ;
223215 let pos3 = test1 * self . series_approximation . probe_sampling + test2 + self . series_approximation . probe_sampling ;
224216 let pos4 = test1 * self . series_approximation . probe_sampling + test2 + self . series_approximation . probe_sampling + 1 ;
225217
226- // println!("{}, {}, {}, {}", i, j, test1, test2);
227-
228218 [ self . series_approximation . valid_iterations [ pos1] ,
229219 self . series_approximation . valid_iterations [ pos2] ,
230220 self . series_approximation . valid_iterations [ pos3] ,
@@ -246,8 +236,6 @@ impl FractalRenderer {
246236 derivative_current : ComplexFixed :: new ( 1.0 , 0.0 ) ,
247237 glitched : false ,
248238 escaped : false ,
249- series_approximation_delta : new_delta,
250- series_approximation_iteration : chosen_iteration
251239 }
252240 } ) . collect :: < Vec < PixelData > > ( ) ;
253241
@@ -327,6 +315,9 @@ impl FractalRenderer {
327315 self . zoom . reduce ( ) ;
328316
329317 if self . zoom . to_float ( ) < 1e10 {
318+ self . series_approximation . valid_iteration_frame_multiplier = 0.0 ;
319+ self . series_approximation . valid_iteration_probe_multiplier = 0.0 ;
320+
330321 // SA has some problems with precision with lots of terms at lot zoom levels
331322 if self . series_approximation . order > 8 {
332323 // Overwrite the series approximation order
0 commit comments