www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/09/02:33:55

From: "sl" <back AT you>
Newsgroups: comp.os.msdos.djgpp
Subject: RHIDE -- author(s) please read this
Date: Fri, 07 Nov 97 14:19:47
Organization: Generation.NET
Lines: 24
Message-ID: <sonmkigiu.pminews@porta15.generation.net>
Reply-To: "sl" <back AT you>
NNTP-Posting-Host: portA15.Generation.NET
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

	RHIDE (for DOS) is multitasking unfriendly. I assume that when RHIDE
is idle it uses:

  while (! (keypressed = KBHIT() ) );
  switch keypressed <etc..>

	or something of the sort. By simply replacing those lines with:

#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
modification in the next release of RHIDE and/or release some sort
of patch for the current release? Please reply, (sl AT usemail DOT com)

Gili



- Raw text -


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