Wednesday, November 30, 2011

Unity3D available on Linux!

While exploring the build API for Unity3D today, I came across this...

Yup, that's a BuildTarget enum for Linux! I haven't tried it yet, so it may throw an exception if I try to use it... but I'm guessing this means official Linux support is imminent?

Tuesday, November 22, 2011

Unity3D GC Spikes

If you've been working with Unity3D for a while, you've probably noticed when the garbage collector kicks in, your frame rate suffers, very badly. I've spent some considerable time trying to eliminate these hiccups from my AI code, with no success. I ended up reducing the problem to a simple project which loads and runs 1000 coroutines forever, which do nothing except yield 0. This is the result in my profiler.

Those nasty spikes are where the GC kicks in and performance plummets. It's particularly nasty on iOS. The question is, how to fix? I have no idea. This project only runs coroutines which do nothing. No allocations, instantiations or anything else. Yet, the GC still kicks in very frequently. Too frequently. If _anyone_ has a solution for this, I'd love to hear it. I'm worried the problem is too fundamental to Unity3D to fix in any way... Try for yourself if you like. spiker.unitypackage Update: After running this same test and profiling the iOS and Desktop builds, the GC spikes disappear completely. The less I have learnt, is don't rely on profiling in the Editor!

Star Hammering in Two Days

In two days, I get to buy this game. I've been waiting quite some time to play this. You should buy it too, then we can all beg the developer for a MMO expansion together! :-)

Popular Posts