-timedemo parameter desyncs in Heretic and Hexen

In vanilla Heretic and Hexen. the -timedemo parameter exists, but does not work correctly. The player actions in the demo will quickly desync, and in the case of Hexen, it is probable that the player will eventually spontaneously gib.