From 56be067af63c319c5ff5e0475e5cf558a80626f0 Mon Sep 17 00:00:00 2001 From: Natt Akuma Date: Mon, 7 Mar 2022 15:44:15 +0700 Subject: [PATCH] No need to de-duplicate writes here --- src/engine/platform/ws.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/platform/ws.cpp b/src/engine/platform/ws.cpp index 4e7c63309..1a842a227 100644 --- a/src/engine/platform/ws.cpp +++ b/src/engine/platform/ws.cpp @@ -97,11 +97,8 @@ void DivPlatformWS::acquire(short* bufL, short* bufR, size_t start, size_t len) // the rest while (!writes.empty()) { QueuedWrite w=writes.front(); - if (regPool[w.addr]!=w.val) { - if (w.addr<0x40) ws->SoundWrite(w.addr|0x80,w.val); - else ws->RAMWrite(w.addr&0x3f,w.val); - regPool[w.addr]=w.val; - } + if (w.addr<0x40) ws->SoundWrite(w.addr|0x80,w.val); + else ws->RAMWrite(w.addr&0x3f,w.val); writes.pop(); } int16_t samp[2]{0, 0};