I might be the only one who never heard of this before but figured I would mention it for others.
From their own website:
This works surprisingly well, smoothest MAME build I have tested so far, works way better than having MAME on a Windows PC.Batocera.linux is an open-source and completely free retro-gaming distribution that can be copied to a USB stick or an SD card with the aim of turning any computer/nano computer into a gaming console during a game or permanently. Batocera.linux does not require any modification on your computer.
Recognized my Mayflash controller with no hassle and looks very nice on my 40 inches tv. No graphics lag either.