I just spent 5 minutes trying to figure out why my NES emulator was lagging. I thought it might be an OpenGL issue, something to do with the sound core, and I tried a different NES emulator core entirely!
in the end the only thing that fixed it was going into speed and changing it from "50%" back to "100%"!