www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/25/06:01:47

Message-ID: <35B9A6FE.999A184D@mailexcite.com>
Date: Sat, 25 Jul 1998 05:35:59 -0400
From: Doug Gale <dgale AT mailexcite DOT com>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE takes 100% cpu.. what can I do?
References: <1998071101102400 DOT VAA20646 AT ladder01 DOT news DOT aol DOT com> <uTg4eWfr9GA DOT 262 AT upnetnews05>
NNTP-Posting-Host: oshawappp12.idirect.com
Organization: "TUCOWS Interactive Inc"
Lines: 43
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

DeHackEd wrote:

> Are you checking Windows95's System monitor? forget it. Almost ANY DOS program
> will give 100% except for the DOS prompt itself.
>

That is not true. There is a DPMI function called __dpmi_yield() that will release
it's timeslice to windows. RHIDE is a DPMI program and can use this call.
Unfortunately, it doesn't. A simple loop like this:

int main()
{
    while (!kbhit()) {
        __dpmi_yield();
    }
    if (!getch()) getch();
    return 0;
}

will give you a processor usage very close to zero.

Also, I'm pretty sure a DOS program sitting in a getch() will release all
timeslices.



> OoHOSEoO wrote in message <1998071101102400 DOT VAA20646 AT ladder01 DOT news DOT aol DOT com>...
> >Hi,  I've noticed lately that RHIDE takes an abnormal amount of cpu time from
> >my system, even when it's minimized, and even when I set the Idle Sensitivetly
> >to High in the DOS window... I am running a P2 333 Win95 machine and didn't
> >think a program would ever need 100% of that cpu power... any solutions/help
> >would be appreciated.
> >
> >Thank you,

I have also wished that RHIDE did not use so much processor time, because I run
background tasks. Actually, I really wish that Windows would chill-out on giving
DOS boxes so much priority! It's probably to give good DOS game performance.

Well, Robert Hohne. You will probably see this. Can you please (maybe optionally)
give me the option to release timeslices in RHIDE?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019