Update TODO.md: add pointer idea, try ecs

This commit is contained in:
T.v.Dein
2024-06-11 23:08:49 +02:00
committed by GitHub
parent 15bce3cb3a
commit 1623277c85

View File

@@ -7,6 +7,8 @@
- history: dont count age but do calc to get index to age tile based on cell age - 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 - 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 :( see various-tests/perf-2dim-pointers/: it's NOT faster :(
- use an array of 8 pointers to neighbors. on edge just add either fake dead neighbors or the wrap around neighbors.
- try arche ecs variant with either a component of the cells neighbors or using relations.
- https://mattnakama.com/blog/go-branchless-coding/ - https://mattnakama.com/blog/go-branchless-coding/
- add performance measurements, see: - add performance measurements, see:
DrawTriangles: https://github.com/TLINDEN/testgol DrawTriangles: https://github.com/TLINDEN/testgol