It's a good thing to increase RAM, but this is not enough. The CPU needs to be fast as well. However, VLC allows you to enable hardware accelerated capability. Go to Tools > Prefences and switch to Advanced view, then go to Input/Codecs and enable Hardware Accelerated option. You should change the Audio settings as well from the Audio menu.