mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-24 14:05:42 +00:00
Closer to C++ clocked chip implementation
This commit is contained in:
1 parent
110c68a54e
commit
7c2c7a1973
1 file changed
+1
-1
@@ -19,9 +19,9 @@ namespace EightBit
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void Tick(int extra = 1)
|
||||
{
|
||||
this.Cycles += extra;
|
||||
for (var i = 0; i < extra; ++i)
|
||||
{
|
||||
++this.Cycles;
|
||||
this.Ticked?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user