From 32f93dcea5945456c30b05724176e9f504ef596c Mon Sep 17 00:00:00 2001 From: koma Date: Tue, 19 Jul 2022 21:29:39 +0200 Subject: [PATCH] fine tuning precision updating values --- mandelbrot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mandelbrot.cpp b/mandelbrot.cpp index a7ebe82..700da1a 100644 --- a/mandelbrot.cpp +++ b/mandelbrot.cpp @@ -36,7 +36,7 @@ Mandelbrotc::Mandelbrotc(Vec2mp const &f, Vec2mp const &t, Vec2i const &s, uint3 this->screen[i] = new double[s.y]; this->done = false; - this->diff = mpreal(0.0001); + this->diff = mpreal(0.00001); } void Mandelbrotc::start_threads(bool first) @@ -154,4 +154,5 @@ void Mandelbrotc::updatePrec() this->f.x.get_prec()) << std::endl; diff = mpfr::abs(mpfr::abs(this->f.x) - mpfr::abs(this->t.x)); + diff *= 0.01; }