freebsd-ports/graphics/ffff/files/patch-FFFF3.cpp
Emanuel Haupt 6cdf88141e Add ffff, a fast mandelbrot fractal generator with features such as:
* OpenGL
   * realtime zoom
   * SSE/AltiVec QuadPixel
   * SSE2/3DNow! DualPixel calc
   * FPU per pixel calc
   * GPU asm (Fragment/Vertex) calc
   * multiprocessor support
   * benchmarking
   * optimized assembler code!

This port uses the standard mandelbrot fractal at near-Xaos speed. Yet every
pixel is computed. There is also an interesting parameter ray algoritymn using
your 3D card. A 3D card is strongly recommended for screen speed and additional
coprocessing power.

WWW: http://sourceforge.net/projects/ffff/

PR:		103441
Submitted by:	rossiya@gmail.com
2006-10-04 10:54:05 +00:00

39 lines
1 KiB
C++

--- ./FFFF3.cpp.orig Wed Oct 4 11:21:15 2006
+++ ./FFFF3.cpp Wed Oct 4 11:21:35 2006
@@ -24,6 +24,7 @@
... and all the others who kindly sent code, fixes, suggestions and feedback !
*******************************************************************/
+int get_nprocs() {return 1;}
// WARNING: This source is a real mess ! :)))
// WARNING: This is only meant as some "portable" glue for assembly.
@@ -70,7 +71,7 @@
#include <sys/select.h>
#include <sys/types.h>
#include <sys/sysctl.h>
- #include <sys/sysinfo.h>
+// #include <sys/sysinfo.h>
#else
#include "GL/glut.h"
#include "GL/gl.h"
@@ -381,7 +382,8 @@
}
#endif
- avail_SSE = checkSSE();
+ //avail_SSE = checkSSE();
+ avail_SSE = 1;
if (avail_SSE) {
#if defined(__APPLE__) && __BIG_ENDIAN__
// PowerPC
@@ -397,7 +399,8 @@
printf("Switching to machine code FPU mode.\n");
}
- avail_SSE2 = checkSSE2();
+ //avail_SSE2 = checkSSE2();
+ avail_SSE2 = 1;
if (avail_SSE2) {
#if defined (sgi)
printf("MIPS dual FPU units supported.\n");