NES: reduce CPU usage when no channels active

This commit is contained in:
tildearrow 2025-03-07 01:48:10 -05:00
parent dde97171ab
commit 1d60bb03cc

View file

@ -371,4 +371,10 @@ void apu_turn_on(struct NESAPU* a, BYTE apu_type) {
// come non viene inizializzato? Vorrei qualche spiegazione...
a->r4011.frames = 0;
a->lastSample = 0;
a->S1.timer=2048;
a->S2.timer=2048;
a->TR.timer=2048;
a->NS.timer=0x0FE4;
//a->DMC.=0x01AC;
}