Current thinking is it was the combined effect of the two atomic bombs AND the Russian declaration of war that finally convinced the Japanese to surrender. They were marshalling thousands of planes for kamikaze attacks. They would have weaponized the entire civilian population for any invasion of the mainland. In addition, and a fact most overlook, is the Japanese were continuing their slaughter of the Chinese. The atomic bombs were necessary to end the war and bring the killing to an end.