|
|
|
|
|
by quadcore
1511 days ago
|
|
Using Goroutines, I also made 10k 2D rabbits wander on a map for 5% of my laptop cpu (they'd sleep a lot admitedly). One goroutine per rabbit, how amazing when you think about it. That's when Go really got me. edit: oh they do rabbits in the video as well what a bunny coincidence edit2: the goroutines werent drawcalling btw, they were just moving the rabbits. The drawcalls were still made using a regular for loop, in case you wonder. |
|