@@ -63,6 +63,7 @@ impl FractalRenderer {
6363 let probe_sampling = settings. get_int ( "probe_sampling" ) . unwrap_or ( 3 ) as usize ;
6464 let remove_centre = settings. get_bool ( "remove_centre" ) . unwrap_or ( true ) ;
6565 let iteration_division = settings. get_float ( "iteration_division" ) . unwrap_or ( 0.1 ) as f32 ;
66+ let iteration_offset = settings. get_float ( "palette_offset" ) . unwrap_or ( 0.0 ) as f32 ;
6667 let valid_iteration_frame_multiplier = settings. get_float ( "valid_iteration_frame_multiplier" ) . unwrap_or ( 0.25 ) as f32 ;
6768 let valid_iteration_probe_multiplier = settings. get_float ( "valid_iteration_probe_multiplier" ) . unwrap_or ( 0.02 ) as f32 ;
6869 let glitch_tolerance = settings. get_float ( "glitch_tolerance" ) . unwrap_or ( 1.4e-6 ) as f64 ;
@@ -142,7 +143,7 @@ impl FractalRenderer {
142143 auto_adjust_iterations,
143144 maximum_iteration,
144145 glitch_percentage,
145- data_export : DataExport :: new ( image_width, image_height, display_glitches, data_type, palette, iteration_division, analytic_derivative) ,
146+ data_export : DataExport :: new ( image_width, image_height, display_glitches, data_type, palette, iteration_division, iteration_offset , analytic_derivative) ,
146147 start_render_time : Instant :: now ( ) ,
147148 remaining_frames,
148149 frame_offset,
@@ -241,6 +242,8 @@ impl FractalRenderer {
241242 } ;
242243
243244 if frame_index == 0 {
245+ self . data_export . maximum_iteration = self . maximum_iteration ;
246+
244247 self . center_reference . run ( & self . progress . reference , & self . progress . reference_maximum ) ;
245248 self . series_approximation . maximum_iteration = self . center_reference . current_iteration ;
246249 self . series_approximation . generate_approximation ( & self . center_reference , & self . progress . series_approximation ) ;
@@ -294,7 +297,7 @@ impl FractalRenderer {
294297
295298 self . progress . min_series_approximation . add ( self . series_approximation . min_valid_iteration ) ;
296299
297- self . data_export . maximum_iteration = self . maximum_iteration ;
300+ // self.data_export.maximum_iteration = self.maximum_iteration;
298301
299302 tx. send ( ( ) ) . unwrap ( ) ;
300303
0 commit comments