Ulrich Weigand wrote:

> I've changed this to a more reasonable 100 timer ticks
> per second, and everything looks much smoother now ...
> Kevin, you're familiar with the Bochs stuff: is there
> any reason why we should not call the timer tick that
> often?

I believe we shouldn't use the timer at all.
Either we use direct access to framebuffer memory
(DOSEMU full-screen driver or X DGA (needs special
drivers in guest)) or we have the GUI clone() itself
(or use pthreads ?) and have screen updating
asynchronously in a separate thread, like this:

   for(;;)
   {
      screen_update();
      sched_yield();
   }

Idea: can we use the dirty bits on the pages corresponding
to the guest FB in order to lower the CPU usage ?

Anyway, the BOCHS method is fine for now but it
really isn't suitable for high-performance graphics.

-- Ramon



Reply via email to