XNA/C# – StringBuilder to String with no garbage
In my day job I’m a bit of a stickler with memory. I’m at times approaching borderline OCD I think with budgets and fragmentation. Having a good handle on memory usage on a game is very important;...
View ArticleXNA/C# – Avoiding garbage when working with StringBuilder
In my previous coding post, I spoke about some issues with converting a mutable StringBuilder string back to a regular ‘string’ object without generating garbage. Well, specifically without requiring...
View ArticleXNA/C# – A garbage-free StringBuilder Format() method
So, another entry in this StringBuilder and garbage series… This time I’m exploring the Format() method, and implementing a new alternative that does not generate any garbage. The existing...
View ArticleXNA/C# – Thread.CurrentThread is slow on Xbox 360
I’ve still a few more XNA articles I’ve been planning to write. The next one was to involve some threading code, and in the process of creating the article I hit upon something that I found...
View ArticleXNACPC – An Amstrad CPC Emulator for the Xbox 360
A few weeks ago I mentioned on twitter that I was working on an Amstrad CPC emulator, written in XNA. There are plenty of the things for the PC and various other consoles, but not one for the Xbox 360...
View ArticleXNA/C# – Changes in the Xbox 360 Compact Framework
A few months back I was partway through an article about XNA. I was going to cover how to implement efficient “Thread Local Storage” on the Xbox 360. Back in Game Studio v3.1 I found that the...
View ArticleXNA/C# – [ThreadStatic] attribute is broken on Xbox 360
Continuing on from my last XNA post, I had a go at using [ThreadStatic] on the Xbox. Specifically this attribute was not available with XNA 3.1, but was introduced in the new 4.0 version. At first...
View ArticleXNA/C# – Thread-local storage on Xbox 360
I initially begun writing this particular article back in April. Back then with XNA 3.1 to play with, there was actually a method of ‘thread-local storage’ for Xbox. With the release of XNA 4.0,...
View ArticleXNA/C# – StringBuilder changes in XNA 4.0
So yeah, this is another post detailing a change made in the latest version of XNA. This one was inspired by some comments on a previous blog post of mine: “StringBuilder to String with no garbage”. A...
View ArticleXNACPC: Xbox 360 Amstrad CPC Emulator, released!
On and off during the last month or so, I’ve worked toward finishing a project I wrote about last year. It’s an Amstrad CPC Emulator, written in C# using the Microsoft XNA library. I’ve written plenty...
View Article