4 ms·
Your game could dynamically modify the instructions.
by geocar 12y ago
Your game could dynamically modify the instructions.
- ekianjo 12y agoSure, but wouldn't that incur a loss of performance ?
- geocar 12y agoSome, but maybe not very much: The screen is redrawn much more frequently than a key is pressed.
- skrebbel 12y agoYou might get noticeable latency though.
- userbinator 12y agoOn a modern pipelined CPU with separate instruction/data caches self-modifying code does have a rather large penalty since it has to flush the pipeline and the caches, but on the original 8088 PC which has no cache and no pipeline (there's only a 4-byte prefetch queue), the penalty is much smaller.