Yes, Many games are built especially for the game to optimize and help to clean the RAM which is run on the phone's background it will also stop to run any other apps which are running without your permission.
You can use any game optimizer to play Spider man 3 using the PPSSPP app some devices also have an inbuild game optimizer so that you don't need to use any third-party app.