no no, detonation isn't caused buy the fuel being ignited before the spark plugs are fired. that's preigniton - ignition happening before its spose to. but can lead to det
detonation- very simplified way of explaining it: when the fuel mix erratically combusts due to excessive cylinder pressure, at the time the mix is lit... ignition timing, fuel octane, boost pressure, in cylinder temps. will all have an effect on detionation threshold. plus clyinder head design, but we're all talking e series here
so if the mix is lit too soon. be it a hotspot, (pre-igniton) or too much igntion advance. the cylinder pressure will be way too high, due to the fuel mix exploding, and the piston trying to compress the explosion at the same time. then we have some detonation and some nicely cracked ringlands.
the colder the air and higher octane of the fuel will prevent the above happening to a point.
its very hard to explain, and theres alot more to it than that. but gives you an idea
so many people give the standard pistons a bad name for being "weak" after they crack one from detonation.