Graphics cards already don't render stuff outside the window automatically. The problem is elsewhere, probably in your event sheet, perhaps the collision detection. Try backing up your project, then disabling all your code and see what the fps is. That will show you just the rendering performance.