Is it a particular game or all games? what iOS are you running? The iPhone 4 is about 3 years old which is pretty old in hardware terms. So when running games it might help to go into the app switcher/multi-tasking menu by double tapping the home button. Then shut down all the apps running in the background. It will ensure that your game has all the power the hardware has to offer.