Packing and Unpacking Bits Faster than BitConverter

Yesterday I’ve published an article on packing bits, I still don’t know if there’s a library out there that allows you to do that easily and efficiently so I’m using my own functions for that purpose. However, a popular way to pack bytes into other data types is the BitConverter class. Please note the functionality Read more about Packing and Unpacking Bits Faster than BitConverter[…]

CPU cache optimization and multi-threading in C#

I’m making a game that contains a massive and very complex cellular automation grid (like ‘game of life’) for the map. It’s basically a 2D side-scroller, but the whole map is dynamic. My plan is to achieve 8192×1024 wrap-around (on X) maps. First I’ve made a simple prototype with classes for the objects. I’m using Read more about CPU cache optimization and multi-threading in C#[…]