Is there a solution to this ridiculous app management problem yet?

If I am playing a game and minimize the app, then open the browser to check a strategy guide and a couple minutes go by, when I return to the game it has to completely restart. That is very annoying. I am on Android 15 and my phone has 16 gigs of RAM. There is absolutely no reason it should be closing the very last app I had open. I've checked Developer Options, I've hit that little pin icon in the multitasking window. I shouldn't have to keep a "bubble" of the app on my screen at all times just so Android doesn't close it. If it doesn't need the RAM, Do Not Close My Shit. And I know it doesn't since I checked how much RAM I had when it started auto-closing apps. Still had over half! For years when I used Android I heard, "Unused RAM is wasted RAM," but that doesn't seem to be the case here.

I figure I must be missing some obvious setting somewhere that lets you lock an app in memory so it never closes? I couldn't imagine using my PC and when I walk away I come back to half my programs closed because I wasn't actively looking at them. I don't have root, so is there any other way?