Skip to content

Commit ace4780

Browse files
committed
added some extra files and cleanup
1 parent e4e6056 commit ace4780

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

default.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
image_width = 1000
22
image_height = 1000
3-
frames = 1
3+
frames = 50

golden_spider.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
real = "-1.1655333947333519417384501796172924714321933574886948370635079467386009660630863680482129331890021314688012579836842018076673714838362053005104217694434001399999999999999999999999999999"
2+
imag = "-0.2271210791418481776581963677152186196245386397864896895230410088609047882859706788178588062696655554009656384215056003193835528856821046667996157018494188799999999999999999999999999999"
3+
iterations = 200000
4+
zoom = "5.23742497263E151"

src/renderer.rs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,14 @@ impl FractalRenderer {
7979

8080
pub fn render_frame(&mut self, index: usize, filename: String) {
8181
print!("{:<6}", index);
82+
print!("| {:<14}", extended_to_string(self.zoom));
8283
let frame_time = Instant::now();
83-
84-
// If we are on the first frame
85-
// if index == 0 {
86-
// self.center_reference.run();
87-
// println!("{}", self.center_reference.current_iteration);
88-
// }
89-
90-
91-
92-
93-
94-
95-
84+
let time = Instant::now();
9685
let delta_pixel = (-2.0 * (4.0 / self.image_height as f64 - 2.0) / self.zoom.mantissa) / self.image_height as f64;
9786

9887
// this should be the delta relative to the image, without the big zoom factor applied.
9988
let delta_top_left = ComplexFixed::new((4.0 / self.image_width as f64 - 2.0) / self.zoom.mantissa * self.aspect as f64, (4.0 / self.image_height as f64 - 2.0) / self.zoom.mantissa);
10089

101-
let time = Instant::now();
102-
103-
print!("| {:<14}", extended_to_string(self.zoom));
104-
10590
let delta_pixel_extended = FloatExtended::new(delta_pixel, -self.zoom.exponent);
10691

10792
// Series approximation currently has some overskipping issues

0 commit comments

Comments
 (0)