VOGONS


First post, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

http://alter.org.ua/en/soft/win/ntvdm_int28/

INT 28 idle implementation for NT VDM by Vitaliy Vorobyov aka DeathSoft […]
Show full quote

INT 28 idle implementation for NT VDM
by Vitaliy Vorobyov aka DeathSoft

Situation: DOS applications use loop when waiting for user input.

Trouble: unnecessary power consumption, overheating and difficulties with background tasks (e.g. printing)

Solution: since DOS 2.0 new function was introduces for idle wait - INT 28. If the application uses this function, wait is performed with HLT instruction or some other task is executed.

Trouble N2: Virtual DOS machine under NT this function is not implemented. Thus event if the application uses INT 28, it consumes 100% CPU iven in idle state. That is why in multitask OSes CPU time is wasted with such programms. In addition new generation of processors emits significant amount of power nad gets very hot. This leads to much noise from coolers.

Solution N2: install the driver from the archive below.

Attachments

  • Filename
    ntvdm_int28_v1.rar
    File size
    13.02 KiB
    Downloads
    408 downloads
    File license
    Fair use/fair dealing exception

How To Ask Questions The Smart Way
Make your games work offline

Reply 3 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox doesn't call int 28 at all so. installing a handler there to idle the cpu doesn't do much good

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 6, by ninjalj

User metadata
Rank Newbie
Rank
Newbie

Uh?

AFAIK Dosbox doesn't need that, here on my laptop xosview doesn't really report much CPU load when running Dosbox, for most games I care. Looking at ltrace output, it seems Dosbox is yielding at SDL_PollEvent.

And I don't hear my fan often when running real mode games on Dosbox.