mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 01:44:31 +02:00
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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user