View Single Post
Old 03-21-2012, 07:35 PM   #36
kaminkatze
Member
kaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with otherskaminkatze plays well with others
 
Posts: 17
Karma: 2600
Join Date: Mar 2012
Device: Kindle 3
Quote:
Originally Posted by geekmaster View Post
EDIT: The choice of programming language is rarely the problem. You just need to "think differently" and find a better algorithm.
Yeah, but with arrays vs. starting a (series of) new process(es) for every pixel access, this might be one of the rare cases. Maybe I do a pure sh version with smaller grid, if I'm lucky enough to find a good solution. Definitely keeping my eyes open.

Quote:
Originally Posted by geekmaster View Post
Do you see how fast those pixels are being updated in 4-bit (600 pixel wide) mode? I am looking forward to seeing them updated using Conway's Life algorithm!
For today only the linear array style. Thus no wrap around on top/bottom.
It initializes the array with the thresholded framebuffer content.
Attached Files
File Type: gz gameoflife.gz (2.8 KB, 379 views)

Last edited by kaminkatze; 03-21-2012 at 07:41 PM.
kaminkatze is offline   Reply With Quote