Date: Tue, 11 Nov 1997 11:31:16 +0100 (MET) From: Robert Hoehne To: sl cc: DJGPP mailing list Subject: Re: RHIDE -- author(s) please read this In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 7 Nov 1997, sl wrote: > RHIDE (for DOS) is multitasking unfriendly. I assume that when RHIDE What version of RHIDE are you using? > is idle it uses: > > while (! (keypressed = KBHIT() ) ); > switch keypressed Oh no!! In RHIDE it is much more complicated. > #include > #include > > while (!keypressed=kbhit()) > __dpmi_yield(); > > the cpu usage goes down from 100% to 1%.. Can you please make this Becuase I don't know what version of RHIDE you are using, I cannot give you the exact solution, but if it is 1.3 then please disable the 'SHow free memory' option from the preferences and see if it helps. In version 1.4 this should be fixed (at least under Linux I get a CPU usage when RHIDE is idle of about 0.8%). BTW: If you are running under Windows (what I'm guessing), How do you mess the CPU usage? Are you sure, that the shown value is correct? And a last note: Have you ever tried, that the __dpmi_yield() has any effect? When I remember correct, I tried it already several times and couldn't see any effect. Robert ****************************************************** * Robert Hoehne * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************