Changing Background Settings Of A Gamr

Hello everyone!

I am currently building games for team members at my job. The problem is that Unreal Engine games run good but if you try to use any other program, the other programs lag very badly. This causes production issues since the other programs are more important than the games.

Does anyone know how to have more control over how much memory Unreal games use while they are in the background or if we can just make the game not use any memory while it is not selected?

Thank you,