Allocating more memory shouldn't be necessary? Please provide a screenshot of the FPS counter.
Lag from higher quality modes may largely be due to the "additonal light shadows" setting, this mode is extremely intensive and may need to be toggled after setting quality mode. It may also be due to SSAO at higher resolutions, it depends.