Monday, May 20, 2019

Building large worlds in Unity.

I made something which lets you render very large worlds with a small farClipPlane.

The demo shows an earth sized planet viewed from about 1000km altitude. It's great for Space Games, like this one I've been working on recently.

Thursday, September 06, 2018

.Net reflection is expensive in more ways than I thought...

Enter statements below.
csharp> var t = typeof(int);
csharp> Object.ReferenceEquals(t.AssemblyQualifiedName, t.AssemblyQualifiedName);
Every access to the AssemblyQualifiedName property does some lookup work… and returns a NEW copy of the string.

It’s _almost_ as if one might recommend caching every property, because you never know what it might be doing, and avoid creating auto properties (in place of public fields), so that you know when there is no need to cache the value.

Wednesday, July 18, 2018

Faster Update calls for Unity!

These MonoBehaviour classes allow for batch updating of all components in a single call. KinematicMotor example provided. It's a gentle solution to the 1k update calls problem.

Popular Posts