don't call the pause procedure every frame, but only upon pause state change.