mirror of
https://github.com/csd4ni3l/game-of-life.git
synced 2026-01-01 04:23:42 +01:00
Optimize game of life implementation to bitwise operations to achieve 450-500 fps for a glider gun, use int instead of math.ceil for positions and fix generation fps reset after file manager
This commit is contained in:
@@ -7,7 +7,7 @@ COLS = 80
|
||||
ROWS = 60
|
||||
CELL_SIZE = 10
|
||||
SPACING = 2
|
||||
NEIGHBORS = [(-1, 0), (-1, 1), (-1, -1),(0, 0), (0, 1), (0, -1), (1, 0), (1, 1), (1, -1)]
|
||||
NEIGHBORS = [(-1, 0), (-1, 1), (-1, -1), (0, 1), (0, -1), (1, 0), (1, 1), (1, -1)]
|
||||
|
||||
discord_presence_id = 1363780625928028200
|
||||
log_dir = 'logs'
|
||||
|
||||
Reference in New Issue
Block a user