RSS Feed

September 5, 2018

And it came about that the computer was born and all was good. Then there was another computer and the need to share things. It was easy. Knowing both sides, we can send data the computer understands. But wait, now some computers see the binary world differently. OK, l...

August 27, 2018

My limited tests show that Dictionary is faster than `SortedList`. The latter uses `Array.BinarySearch` to find entries. I have read other performance tests that report binary searches to be faster for small numbers of keys. I checked this on my MacBook Pro - and the D...

August 14, 2018

Everywhere you go there are warnings about how slow Slerp is when compared with Lerp. Indeed, the published algorithms support this. Slerp has many trigonometric functions while Lerp survives on multiply and divide. When I ran a test on my Mac, Slerp was less than 15%...

May 6, 2018

When do we use a CustomAsset/ScriptableObject and when a Monobehaviour? Simply put, Monobehaviours in scenes are independent of each other. Scriptable objects are singletons. Each asset, referenced by name and class, is unique in the project. Any code that has access t...

May 3, 2018

Playing one from a selection of audio clips has been a well-used proof of concept for ScriptableObject. Because custom assets, sets and some other toys from the Askowl-CustomAssets package, make the implementation even simpler, I am displaying the source here. It is al...

April 27, 2018

Static variables are not evil, just inflexible. Singleton MonoBehaviour instances are not corrupt either. However, both encourage tight coupling between interested parties.

And now for a bit of mild blasphemy. Assets created from scriptable objects, and hence custom ass...

April 20, 2018

Every time I see a new article on ScriptedObject uses I take some on board. I implement something using the further information then move on (or back to where I once belonged).

I have just watched the video from Ryan Hipple (here).Ryan Hipple (here). I started implement...

April 12, 2018

Don't get me wrong - I love the support Unity gives. Now for the 'but'. Unity3D treats C# as a scripting language and ties everything together in the Unity editor. Great for design, development and teams with different specialisation, but a bit of a problem tracing whe...

April 9, 2018

Release, Integration and Unit testing still have a way to go before they become firm friends with Unity3D.

This blog is about folders. It is not a good idea having test code or assets embedded in your production release. Apart from app bloat, there is a real possibility...

March 28, 2018

Developers hate documentation. They hate writing it, and they hate reading it. Good code is self-documenting - right? Well, yes - to a certain degree. The trick is not what you know, but what you know exists.

I have always loved factoring my common code out into librari...

Please reload

Featured Posts

My limited tests show that Dictionary is faster than `SortedList`. The latter uses `Array.BinarySearch` to find entries. I have read other performance...

How are C# Dictionaries so Fast?

August 27, 2018

1/5
Please reload