From the idea that you have 4gb of ram I'm going to assume your PC probably isn't meeting the minimum requirements for RPCS3, so there's nothing you can really do.

"NintenDON'T sue me please haha"
I really want to play Lego marvel but it's too laggy on my pc, I have 4gb ram and win 10, please help