Browse by Tags

All Tags » Performance » Terrarium (RSS)

Performance: Don't rely on the C# compiler to optimize your math...

The C# compiler generally does a good job of optimizing your math, but it isn't always the case. I was going through some interesting code in the .NET Terrarium where we approximated the magnitude of a vector by using a Taylor series. What I found strange...
Posted by Justin Rogers | 10 comment(s)
Filed under: ,

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...

Brad Abrams talks about mutable read-only fields and I attempt to elaborate.

Brad Abrams posts an article on Mutable reference types should not be read-only fields . You really have to think about what this means. In the example he creates a new type, say F, that has some internal data. On another type, he creates a read-only...

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