Is there a way to disable all background apps (gmail, google notifications, messaging apps, etc...) when a certain/any app is running? I would like to do this because I play a certain game (Sine Line) which requires you to press the screen for short periods of time, in a very controlled manner, and any lag kills me.
I assume this could be useful for other resource-intensive apps, such as maps/gps, or image editing.
Either disabling/killing background apps when a certain or any app is running are acceptable solutions. Tasker is also acceptable, however Tasker itself is quite resource-intensive so avoiding it would be best.