Try changing your system's color quality from 32-bit to 16-bit. Helped a lot for me.
Use the above + Gibstick's post + playing at a lower resolution (like 800x600) for best results if you're still getting sub 40 fps.
Use the above + Gibstick's post + playing at a lower resolution (like 800x600) for best results if you're still getting sub 40 fps.