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.

This commit is contained in:
Philip
2010-11-07 17:55:25 -05:00
parent cbe3ed49c4
commit 3de06dea86
3 changed files with 53 additions and 48 deletions

View File

@@ -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];