sikthehedgehog / Echo

Mega Drive sound engine
zlib License
95 stars 15 forks source link

Add second command queue #5

Closed sikthehedgehog closed 7 years ago

sikthehedgehog commented 7 years ago

Currently when the 68000 wants to send a command to Echo but it still hasn't handled the previous one, the 68000 is forced to wait until Echo finishes - something that can take a long while (depending what Echo was doing with the stream at the time), and made much worse by the fact the 68000 has to keep halting the Z80 constantly to be able to peek into Z80 RAM.

Adding room for storing a second command could help reduce this problem. The 68000 would first try writing in the first slot, and if it's not free then it'll go for the second slot, and only if that's busy too then it'll just halt.

sikthehedgehog commented 7 years ago

This was added in Echo 1.5 (・・ )