Browse by Tags

All Tags » Performance » Games4 .NET (RSS)

Card Games: Testing the Poker Coder (a short before I start back into the math)...

Testing the poker coder is actually fairly fun. We know quite a bit about the sample data, and we know exactly how many combinations there are. So let's take a look at some naive approaches. for(int i = 0; i < 52; i++) { for(int j = 0; j < 52; j...

Joel's Lightweight Code Gen spells SUWEET for small scripting languages in games.

Reading Joel's blog and having lunch with him are two different things. You never really see all of the possibilities of a technology until you see the twinkle in someone's eye and realize that the technology might be slightly more powerful than you originally...

Improving on System.Random for gaming and simulation

The algorithm for grabbing samples in the System.Random class comes from Numeric Recipes in C, Second Edition. They've made some small changes to how the algorithm is run, to either improve performance, or improve the random characteristics of the resulting...

Terrarium: Enumerating collections with an outlook on how to speed up the process.

Okay, so I was going through some old source code, that I won't claim since I probably didn't write it based on the fact the as statement wasn't used (as soon as I found out about the as statement I made sure to take advantage of its usage whenever possible...

Terrarium: A focus on game loops and scheduling

We've talked about the Terrarium game loop quite a bit in the past, mainly through channels that no longer exist (the GDN Forums). The primary reason we focused attention on the game loop was to help creature authors understand the order of processing...
More Posts