[uae] Re: dont_busy_wait in prefs?

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Thu, 15 Feb 2007 00:55:05 -0500

Hi Don

On Sunday 11 February 2007 19:17, Don Venhaus wrote:
> Just tested the latest CVS snapshot (slackware10.2,athlon xp) and
> it's a-ok.
>
> However, I wonder if there is a plan to add the dont_busy_wait flag
> to the prefs. I always hack a couple lines into default_prefs in cfgfile.c
>
> p->cpu_idle = 180;  /* discovered by looking at slider output at 9 DJV */
> p->dont_busy_wait = 1;  /* so it doesn't use all the cpu time DJV */
>
> Also, I put back the #define SLEEP_DONT_BUSY_WAIT in sleep.c
>
> That way, It takes almost no cpu when doing nothing, but will run
> full blast when it needs to.

The problem is there's a vast difference in the way different Linux system 
perform. If you don't test the sleep() function then on systems where sleeps 
takes 10ms, performance will be terrible when cpu_speed=real (10ms is half 
the period of a PAL frame).

I need think how this can be done better.

Cheers,
Rich



Other related posts: