Mail Archives: djgpp/2000/05/02/07:15:38
On Mon, 1 May 2000, Damian Yerrick wrote:
> Oh, BTW, how often should __dpmi_yield() be called, to balance time
> between drawing an app's graphics and giving time to other apps?
It's up to you; it depends on how much does the application need to
draw in the background. It also depends on the CPU and the other
applications running around.
In Emacs, these aspects are left to the user, by providing a set of
customizable variables. For example, when Emacs colorizes the buffer
during idle time, the user can determine how many lines will it
colorize before returning to the idle code (which immediately calls
__dpmi_yield), and how much time will it wait until the next chunk of
colorizing.
The usual rule of thumb is to tune the relevant parameters so that
such background operation takes less than 10% of the CPU resources.
- Raw text -