tried more variants: writepixel+pointer+int, which is not much better

This commit is contained in:
2024-06-14 19:56:00 +02:00
parent 45e5fc7e3b
commit 6544052bb7
7 changed files with 668 additions and 30 deletions

View File

@@ -238,35 +238,7 @@ func (game *Game) Draw(screen *ebiten.Image) {
}
func main() {
//x := 1
//y := 0
col := 1 >> 0xff
fmt.Printf("col: %d\n", col)
x := 1
y := 2
c := 4
xm := x & (c - 1)
ym := y & (c - 1)
fmt.Println(xm & ym)
a := 1
b := 1
//gen := 100
hist := 0
for gen := 0; gen < 50; gen++ {
fmt.Println((a ^ (1 ^ b)) * (gen - hist))
if gen == 25 {
a = 0
}
}
}
func _main() {
size := 800
size := 1500
game := &Game{
Width: size,
@@ -275,7 +247,7 @@ func _main() {
Density: 8,
TPG: 10,
Debug: false,
Profile: false,
Profile: true,
Gridlines: false,
}