Hello world!

It’s time for a new blog! There’s lots of writing on programming and design I want to share, and I need a place to put it all.

Expect posts on:

  • Rust
  • Unity
  • Real-time simulation
  • Graphics
  • Machine Learning & AI
  • Sound & Music

While I’m setting things up, here’s a random snipped of C# for you to look at.

 public class Framerate : MonoBehaviour {
    private float _framerate = 60f;
    
    private void Awake() {
        Application.targetFrameRate = 60;
    }
    private void Update() {
        _framerate = Mathf.Lerp(_framerate, 1f / Time.deltaTime, 1f * Time.deltaTime);
    }

    private void OnGUI() {
        GUILayout.BeginVertical(GUI.skin.box); {
            GUILayout.Label(string.Format("Framerate: {0:0.00}", _framerate));
        } GUILayout.EndVertical();
    }
}

One thought on “Hello world!

Leave a Reply

Your email address will not be published. Required fields are marked *