logoalt Hacker News

mysterydiptoday at 7:54 PM1 replyview on HN

One of my favorite simulations! Thanks for sharing, hope the journey was enjoyable and you do more.

Love the use of VGA memory for the simulation grid. Were you able to double buffer, or how did you handle holding the previous state while processing the next one?


Replies

0xAXtoday at 8:42 PM

Yes, it was really fun!

Yes, doubled if you meant... To calculate the next generation I dumped the current (vga memory) after the grid is rendered to a buffer in memory and calculating the next one right to video memory back.