Wohlstand / libADLMIDI

A Software MIDI Synthesizer library with OPL3 (YMF262) emulator
GNU Lesser General Public License v3.0
170 stars 17 forks source link

[Suggestion] Add nukeykt's YMF262-LLE emulation core #269

Open freq-mod opened 7 months ago

freq-mod commented 7 months ago

Nuked OPL3 has a successor - a very low level OPL3 emulation core, accurate down to the transistor logic level. I dont know if it is finished yet though. Only point to beware - it might be an absolute CPU killer, especially if Nuked-OPM is anything to go by.

https://github.com/nukeykt/YMF262-LLE

Wohlstand commented 7 months ago

I added it recently into OPL3-BE, and it's absolutely slowpoke on my Intel Core i7-11700KF. I may guess this can be used for the WAV generating purposes, and without of care on real-time.

Wohlstand commented 7 months ago

I talking with NukeYkt, and I getting any his updates immediately, I also sent him a benchmark result of my OPL3BE thing.

freq-mod commented 7 months ago

Damn youre right, its unusable on my AMD Ryzen 5500. Also it seems to be off-pitch, somewhere close to one semitone higher than the old Nuked core.

freq-mod commented 7 months ago

I have noticed YM3812-LLE is significantly lighter, in Furnace one 3812 core eats 60% of my CPU, so that can be considered too in multi-chip setup

Wohlstand commented 7 months ago

What CPU you do have, could you remind? On my CPU, Intel Core i7-11700KF, this one can't work in real-time at all, it plays the output choppy.

freq-mod commented 7 months ago

I tested two LLE cores on Intel Core i5-10505 via Furnace Tracker. OPL2 one averages ~60% cpu load, OPL3 one ~120%. OPL3 one is really choppy, OPL2 can work, at the very least for one core (but then again, only 9ch ;_;)

I also have a laptop with AMD Ryzen 5 5500U, but performance should be comparable