mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 20:20:57 +01:00
remove old debug prints, update TODO
This commit is contained in:
6
TODO.md
6
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
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user