3 ms·
This (original) game came out in 1998. You could write an emulator for x86 in Python that'd be fast enough to run the original operating system and game on mod
by bombcar 4y ago
This (original) game came out in 1998.
You could write an emulator for x86 in Python that'd be fast enough to run the original operating system and game on modern equipment.
Whether that would be the best choice for implementing a game like this today - probably not.
- ahefner 4y agoSeems unlikely. The performance ratio of native code vs. Python is hundreds of times. The original game targeted roughly 100 MHz CPUs. Computers have gotten faster since 1998, but not that much faster in terms of single-threaded performance, the relevant metric here. I'd guess a python x86 emulator would run at 1/5 to 1/10 the required speed.
- WoodenChair 4y agoUnfortunately, that's just not true. At least not in pure Python without using Cython, C-extensions, graphical libraries implemented in C, or the like. In pure Python, you can't even write an NES emulator that operates at full-speed. Look it up. Every NES emulator ever written in Python uses C libraries or some kind of C extension like construct to achieve 60 FPS.