Skip to content

Commit

Permalink
Output Frame Type Change
Browse files Browse the repository at this point in the history
Using a Span<T> passes a reference to the PPU frame buffer and can result in a corrupted frame if the consuming emulator cannot process it before the next frame begins rendering.

Changing this back to a byte[].
  • Loading branch information
enusbaum committed Nov 19, 2024
1 parent d3558ef commit c2ed673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ADNES/Emulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Emulator(
EmulatorSpeed emulatorSpeed = EmulatorSpeed.Normal)
{
//Frame Rendering Components
public delegate void ProcessFrameDelegate(ReadOnlySpan<byte> outputFrame);
public delegate void ProcessFrameDelegate(byte[] outputFrame);

//NES System Components
private Core _cpu;
Expand Down

0 comments on commit c2ed673

Please sign in to comment.