- Thanks received
- 1,318
As for the stuff about writing to display RAM being an IO bottleneck: yes, but if you're going to display something then you're going to write to display RAM either directly as in this code, or indirectly via a BIOS or OS call that also writes directly to video memory.
Nice try Nick but no cigar

How does one optimise bottleneck of displaying counter in slow video RAM? Simples - you don't have to do it for every count of which there will be many millions - human eye simply won't catch the difference and normal video monitors won't show more than 200 changes per second anyway!
Consequently even if you want to keep this counter shown then the most obvious optimisation is to show it every X times, human eye won't see the difference.
As far as I am concerned the real optimisation was in the loop itself which has got blatantly poor assembly, I've even given example at start of the post.






