3 ms·
It's certainly true that the CPU (a Motorola 68k clocked at ~7.60 MHz) didn't leave much space for process intensive operations; one misstep in your code and th
by Mahn 11y ago
It's certainly true that the CPU (a Motorola 68k clocked at ~7.60 MHz) didn't leave much space for process intensive operations; one misstep in your code and the entire game would lag and slowdown. Developers of Sega Genesis games were in fact discouraged of using DIV (division) instructions because they took so many cycles. Fortunately most games could do with bit shifts, IIRC the Sonic games almost never used DIV instructions and did fine.
- pcwalton 11y agoMost programs even today don't do many integer divisions (which is why ARM doesn't even support them, for example). Compilers are really good at eliminating them.