loop & cpu usage

Search this archive.

From: Alper Akçan (distch@hotmail.com)
Date: Tue 25 Dec 2001 - 10:11:28 IST


Hi,
I have a question about cpu usage..
in main loop I use;
void mainloop(void)
{
    int key;
    while ( (key = vga_getkey()) != 27)
    {
    }
}
but like this, cpu usage raises up to %90... and I've a PIII 500
is there any other nice way to do loop?
Thanks for any help..



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST