diff options
| author | Philip <philip@philip-linuxlaptop.(none)> | 2010-11-07 22:55:25 (GMT) |
|---|---|---|
| committer | Philip <philip@philip-linuxlaptop.(none)> | 2010-11-07 22:55:25 (GMT) |
| commit | 3de06dea86b09ae382f6eda411c69db5acf2c111 (patch) | |
| tree | 59576c05ea5964fd2f9fd6e844de46e796f2553c /includes | |
| parent | cbe3ed49c4604864ef41e6d8e629b25259eb491e (diff) | |
| download | powder-3de06dea86b09ae382f6eda411c69db5acf2c111.zip powder-3de06dea86b09ae382f6eda411c69db5acf2c111.tar.gz | |
Increased efficiency a lot, GoL only runs when there is a GoL particle, and other small checks to make it faster. Blank screen fps went from 44 to 60, with a few particles, 44 to 55.
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/defines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/defines.h b/includes/defines.h index 717bc4d..2eb1075 100644 --- a/includes/defines.h +++ b/includes/defines.h @@ -18,7 +18,7 @@ #define THUMB_CACHE_SIZE 256 -#define NGOL 11 +#define NGOL 10 #define IMGCONNS 3 #define TIMEOUT 100 @@ -107,6 +107,7 @@ typedef struct stamp stamp; int MSIGN; int CGOL; +int ISGOL; int GSPEED; int gol[XRES][YRES]; int gol2[XRES][YRES][NGOL]; |
