Skip to content

Commit b95ea7c

Browse files
committed
fixed the frame offset in order to be able to re-render individual frames correctly
1 parent 78d6b90 commit b95ea7c

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

default.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
image_width = 1000
22
image_height = 1000
3-
frames = 999
3+
frames = 1
44
export = "colour"
55
glitch_tolerance = 0.001
66
zoom_scale = 2.0
77
auto_adjust_iterations = true
8-
approximation_order = 32
9-
frame_offset = 0
8+
approximation_order = 64
9+
frame_offset = 0
10+
probe_sampling = 3

locations/threads_colour.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
real = "-1.47414176240993896848662071528158693194984033295350953280086668957218887059547144798782958583693228230313082538417736408312283756916583038548770140907148842507795182301203312327678867411139743734088820831422587016737770172651132123623347543560592366451320269312832570538759109480956462838749508907791843703924365245276567942898938125705618894029328612293147151908041951365498962465718017136637923540348122292958335790053092495783869799482899842041593944847198560523459306518247398734178583094840989359335916427349271969694638813455484795519139180535389178899499218726674005407958574308338167164971091115429523451479626131276956228048957227740597867681604973361307242906518836130901630810235591139999999999999999999"
22
imag = "1.837028624819189477865631515035097395323927302572629030865933104000355714583818892052507681177756076074900340375874325858424795164505875785998449146862924507042300051932135130891413370393327740037629084197582966724720858559206941967648864807892583328760554952794324657809197148266317196316651597885791947076110274629246850125745470256068262793065499915106947670845209696879646797896797942904780372999446765698282800418563469062689909330151614815763561772821921612271912492631000218876452296900861545848888915227426092699498959036990046882718777435775562966053647880616647866656164419540502287729221470963175939777275863084020159079375481684880087569411323863960416637609668567855099418820244664E-94"
3-
#zoom = "8.6e630"
4-
zoom = "1e20"
3+
zoom = "8.6e630"
54
iterations = 1544151

locations/x.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
real = "-1.479796270901760024425279934770411525645551054432599517909807632824286254403907594526888466099962805022975196472549771681831234491695559852583955204986197762293872769474806903995564259040667568599770094383157857518790853771783314763231302599999999999999999999999998"
22
imag = "-0.001199443952813447746281973233374468444560314114132538362037569205657422216739564521471119107626453330996365067987088146663639996715939831819152248618042255824652268918299630897525386638029428706473919823922522752497780934312003352081931299999999999999999999999998"
33
iterations = 50000
4-
zoom = "4.27799999998E40"
4+
zoom = "4.27799999998E235"

src/renderer.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl FractalRenderer {
5252
_ => DataType::COLOUR
5353
};
5454

55-
let zoom = string_to_extended(&initial_zoom);
55+
let mut zoom = string_to_extended(&initial_zoom);
5656
let delta_pixel = (-2.0 * (4.0 / image_height as f64 - 2.0) / zoom) / image_height as f64;
5757
let radius = delta_pixel * image_width as f64;
5858
let precision = max(64, -radius.exponent + 64);
@@ -70,6 +70,11 @@ impl FractalRenderer {
7070
probe_sampling);
7171
let render_indices = (0..(image_width * image_height)).collect::<Vec<usize>>();
7272

73+
for _ in 0..frame_offset {
74+
zoom.mantissa /= zoom_scale_factor;
75+
zoom.reduce();
76+
}
77+
7378
FractalRenderer {
7479
image_width,
7580
image_height,

0 commit comments

Comments
 (0)