Hacker News new | ask | show | jobs
by cogman10 66 days ago
> multiply or add instruction would take multiple clock cycles.

Add, and, or, xor, and bit shift have always been single cycle operations for integers. Doom used integer math for everything I believe.

1 comments

Ah, so you're right.

Still though...care had to be taken to make sure memory was organized to maximize cache hits.

I feel like the crazy optimizations necessary in those days have become a lost art to most game developers.