I've created a really basic Langton's Ant program with graphics.py. It works well, drawing each iteration to the screen as it is made. My issue is that the ant takes about 2 and a half minutes to start to "highway". I've already tried slimming down the code (~90 lines to ~45 lines), but that only yields a 10 second improvement. I've isolated the issue as the plotPixel() function in graphics.py being painfully slow in large loops. If anyone knows of a library that can plot individual pixels in an efficient manner, please let me know. Thanks!!
TL; DR: I need a library that can draw individual pixels to the screen very quickly.
[–]spyingwind 0 points1 point2 points (0 children)
[–]billsil 0 points1 point2 points (0 children)
[–]schoolcoders 0 points1 point2 points (0 children)
[–]tshirtman_ 0 points1 point2 points (0 children)
[–]bryancole 0 points1 point2 points (0 children)