Dio wrote:
Barney wrote:Any chance you could run the emulation in a seperate realtime_priority thread alongside the windows message loop?
Setting realtime on application threads that are doing anything non-trivial is highly not recommended (it can hang the system).
Yes - it can, but I'm suggesting that a secondary thread as a subprocess of a normal-time thread be implemented. When a whole slew of WM_PAINT messages arrive as mIRC updates it's window then the emulation can continue whilst letting the message loop work it's way through the barrage without interruption.
There's at least two windows emulators that I know of that implement this strategy and although there is a risk that you can make your own app non-responsive, you won't affect overall system performance. The only real caveat is that the subprocess being real_time priority must yield periodically to the normal priority thread - usually at the 50/60hz interrupt or while waiting for sound-synch.
That said, I'm not sure that holds true of Win9x, though on an XP/2k system it works beautifully - I have experimented with this myself recently, so have some experience.
Anyway, I'm more than happy with your emulation of a fantastic game, and look forward to more updates - very, very well done, that man! An emulation engine running under windows is a distinctly non-trivial task to get right.
But another solution for the music is
here - I found all the mods from the game after a bit of searching the net.
Thanks for that - I'll bung them in Winamp :-)