Mail Archives: djgpp/1997/11/11/05:32:47
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 <etc..>
Oh no!! In RHIDE it is much more complicated.
> #include <pc.h>
> #include <dpmi.h>
>
> 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 <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -