Should this detonation continue, it will overheat the engine's upper end to the point where ignition occurs before there is a spark: compression heats the mixture in any case, and when a lot more heat is added from the piston crown, etc., the mixture will be
brought to “pre-ignite”. Detonation has a very bad effect on power output; pre-ignition (thought by some to be the same phenomena) is even worse in that regard, but will not long continue unnoticed as it will very rapidly overload the piston - in both the thermal and mechanical sense - beyond the point of failure. Knowing that, you will appreciate that detonation is to be avoided if at all possible. One way to avoid detonation would be to simply hold the compression ratio to some very low number, as they would reduce the pre-combustion temperatures and thereby make detonation unlikely if not impossible. But that method is mostly (the exception I will deal with shortly) too expensive in terms of power-output efficiency. A better method is one employed in most engines today: use of a "squish type combustion chamber, in which the mixture is trapped in a small pocket under the spark plug, and the rest of the cylinder head surface over the bore is made to fit closely against the piston crown when the piston is at top center.