Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like Boxer/Dosbox, but why does it burn my CPU though it doesn't/shouldn't require much processing power?


It simulates a computer entirely in software, which is expensive. This is different from for example Virtualbox which virtualizes a computer, and still executes most of the instructions directly on the processor.


Modern preemptive multitasking operating systems send the CPU to sleep when there's no work to be done. In DOS, the currently running app or game usually just used every available cycle (aside from interrupts handled by the BIOS or DOS) for its own purposes. I don't know if Dosbox has some kind of limiter in place, but if not, the game/app will eat every single cycle it can unless it's specifically designed to wait for the vsync interrupt.


You're right, but DOS emulators are usually configured to run at a slower speed than the host CPU. If not, the games usually run very very fast :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: