From b8e95f52b38eae9988b09a408dd3e8df36050dca Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 17 May 2026 10:27:34 +0100 Subject: [PATCH] Inline clock ticking mechanism --- EightBit/ClockedChip.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EightBit/ClockedChip.cs b/EightBit/ClockedChip.cs index 745dce7..2f3b59f 100644 --- a/EightBit/ClockedChip.cs +++ b/EightBit/ClockedChip.cs @@ -2,6 +2,8 @@ // Copyright (c) Adrian Conlon. All rights reserved. // +using System.Runtime.CompilerServices; + namespace EightBit { public class ClockedChip : Chip @@ -22,6 +24,7 @@ namespace EightBit } } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public void Tick() { ++this.Cycles;