How much ram do I need for a 2gb GPU?(shared memory problem)

Hello, I have to buy an additional memory for my computer and I can’t decide if I want a 4gb or a 8gb (my system currently has 4gb).I tested UE4 4.14 but I want to go with 4.16, and I noticed that after putting textures light sources and effects here and there, the engine started to use almost my entire vram (2gb) and was about to use the shared memory(2gb), tested in the third person project with scallable 2d-3d settings and starter content.Now if I buy a 4gb (=>8gb total) that would mean 1,5gb for windows , 2-4gb for the gpu and what I remain with is only 2,5-4,5gb for the engine to run.Is this enought for the engine to run properly or I have to go with the 8gb(=>12gb tatal) ? Also I have to ask if the bigger upgrade is worth ? Because I will use the engine on a notebook with i7 6500u and nvidia 940m, I’m concerned that the problem may be my cpu and gpu and that I won’t be able to build open world games or anything that have a forest with grass animations (I just don’t know yet if I want to make games with big areas or just closed area games.I have the option to buy the 4gb one and use it for 1-2 years until I get a new PC.So, wich ram , the 4gb one or the 8gb one ? Btw the engine runs pretty fine on 4gb but thats just for the usual stuff.

id go with the most ram you can buy but you also need to be careful when buying ram since you dont really want to mix different sizes, speeds, and brands. theres alot of info out there on buying ram so do a bit of research before you buy. if you cant afford a kit of the size you want then i would buy another stick of what you have.

Thank you very much for answering me, the ram is an onboard 1600mhz ddr3l (1.35v) so it can’t be took out.I will buy the 4gb one since its the most identical. btw …i’m not actually sure if its 1600 mhz, it says so when i look in task manager, but in speecy and cpu-z it does not exceed 800mhz.You are right, i better check the cycle rate first so I don’t run into troubles, also i guess that multiple of 2 rule is true now i know about it.

if your on a desktop all system ram should be able to be removed, if your on a notebook then well good luck with that since thats a totaqlly differnet beast. and vram well thats not something that can be changed so your stuck with what your card has. where things with system ram can get complex is when you have multiple channels and when you try to mix on a single channel. best case scenario is that the system will recognize the new ram and the only limitation will be that it will match the speed to the older stuff or whichever is lowest. worst cast nothing works and you have to remove the new ram.