Skip to content

Commit 88298cc

Browse files
committed
working testing
1 parent 40499cb commit 88298cc

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
rustflags = "-C target-cpu=native"

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ features = ["float", "complex"]
2323

2424
#Additional commands that can improve performance (maybe by around 5-10%)
2525
[profile.release]
26-
lto = "fat"
27-
codegen-units = 1
26+
#lto = "fat"
27+
#codegen-units = 1
2828
#debug = true
29+
opt-level=3

default.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
image_width = 1000
2-
image_height = 1000
3-
frames = 10
1+
image_width = 1920
2+
image_height = 1080
3+
frames = 1
44
export = "raw"
55
rotate = 0
66
glitch_tolerance = 0.000001

src/math/perturbation.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ impl Perturbation {
99
pub fn iterate(pixel_data: &mut Vec<PixelData>, reference: &Reference) {
1010
pixel_data.par_chunks_mut(8)
1111
.for_each(|pixel_data| {
12+
// let reference_data_known = &reference.reference_data[]
13+
14+
1215
for pixel in pixel_data {
1316
let mut scaled_iterations = 0;
1417
let mut scaled_scale_factor_1 = 1.0f64.ldexp(pixel.delta_current.exponent);

src/math/reference.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ impl Reference {
4646
z_extended.reduce();
4747

4848
// This is if we need to use the extended precision for the reference
49-
let extended_precision_required = if z_fixed.re.abs() < 1e-300 && z_fixed.im.abs() < 1e-300 {
50-
true
51-
} else {
52-
false
53-
};
49+
let extended_precision_required = z_fixed.re.abs() < 1e-300 && z_fixed.im.abs() < 1e-300;
5450

5551
self.reference_data.push(
5652
ReferenceIteration {
@@ -74,11 +70,7 @@ impl Reference {
7470
let mut z_extended = to_extended(&self.z);
7571
z_extended.reduce();
7672

77-
let extended_precision_required = if z_fixed.re.abs() < 1e-300 && z_fixed.im.abs() < 1e-300 {
78-
true
79-
} else {
80-
false
81-
};
73+
let extended_precision_required = z_fixed.re.abs() < 1e-300 && z_fixed.im.abs() < 1e-300;
8274

8375
// This is if we need to use the extended precision for the reference
8476
// We could use only the complex extended and check if the exponent is zero

0 commit comments

Comments
 (0)