aboutsummaryrefslogtreecommitdiffhomepage
path: root/demos/mandelbrot/mandelbrot.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-06-30 07:33:08 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-06-30 07:33:08 +0000
commitcacf986a7f13e6a655a3152a8c2dabe071e49554 (patch)
tree62bf4479af8d55a904b0ad690dedeaa3aea3cf7d /demos/mandelbrot/mandelbrot.h
parent37a50fa5268d6d408c74ab2d380785ce07ec302c (diff)
- use double precision to store the position / zoom / other stuff
- some temporary fix to get a +50% improvement from vectorization until we have vectorisation for comparisons and redux
Diffstat (limited to 'demos/mandelbrot/mandelbrot.h')
-rw-r--r--demos/mandelbrot/mandelbrot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/mandelbrot/mandelbrot.h b/demos/mandelbrot/mandelbrot.h
index ea2ee6084..23df7c9dd 100644
--- a/demos/mandelbrot/mandelbrot.h
+++ b/demos/mandelbrot/mandelbrot.h
@@ -9,8 +9,8 @@ class MandelbrotWidget : public QWidget
{
Q_OBJECT
- Eigen::Vector2f center;
- float xradius;
+ Eigen::Vector2d center;
+ double xradius;
int size;
unsigned char *buffer;
QPoint lastpos;