From 927e47dc92cc51610379a77f557e24054cb55d00 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 11 Jun 2024 19:22:29 +0200 Subject: [PATCH] remove old debug prints, update TODO --- TODO.md | 6 ++---- src/config.go | 2 -- src/options.go | 4 ---- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/TODO.md b/TODO.md index 173d409..d41bf8e 100644 --- a/TODO.md +++ b/TODO.md @@ -1,21 +1,19 @@ - add all other options like size etc - add gif export -- add toolbar +- add toolbar (not working yet, see branch trackui) - turn input ifs to switch - only draw visible part of the world -- use themes instead of the current weird color lists - print current mode to the bottom like pause, insert and mark - add https://www.ibiblio.org/lifepatterns/october1970.html - history: dont count age but do calc to get index to age tile based on cell age - maybe pre calc neighbors as 8 slice of pointers to neighboring cells to faster do the count + see various-tests/perf-2dim-pointers/: it's NOT faster :( - https://mattnakama.com/blog/go-branchless-coding/ - add performance measurements, see: DrawTriangles: https://github.com/TLINDEN/testgol WritePixels: https://github.com/TLINDEN/testgol/tree/wrpixels https://www.tasnimzotder.com/blog/optimizing-game-of-life-algorithm -- show gridlines menu has no effect of grid was enabled with -g - - Speed https://conwaylife.com/forums/viewtopic.php?f=7&t=3237 diff --git a/src/config.go b/src/config.go index 00e2b6f..0c16e82 100644 --- a/src/config.go +++ b/src/config.go @@ -278,10 +278,8 @@ func (config *Config) SwitchTheme(theme string) { } func (config *Config) ToggleGridlines() { - fmt.Printf("toggle grid lines, current: %t\n", config.ShowGrid) config.ShowGrid = !config.ShowGrid config.RestartCache = true - fmt.Printf("toggle grid lines, new: %t\n", config.ShowGrid) } func (config *Config) ToggleEvolution() { diff --git a/src/options.go b/src/options.go index 969f57c..5d44879 100644 --- a/src/options.go +++ b/src/options.go @@ -1,10 +1,8 @@ package main import ( - "fmt" "image/color" - "github.com/alecthomas/repr" "github.com/ebitenui/ebitenui" "github.com/ebitenui/ebitenui/widget" "github.com/hajimehoshi/ebiten/v2" @@ -96,8 +94,6 @@ func (scene *SceneOptions) Init() { gridlines := NewCheckbox("Show grid lines", scene.Config.ShowGrid, func(args *widget.CheckboxChangedEventArgs) { - fmt.Println("CHECKBOX CALLED") - repr.Println(args.State) scene.Config.ToggleGridlines() })