qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] cocoa.m - Core Graphics support
Date: Thu, 31 Jan 2008 16:40:08 -0600	[thread overview]
Message-ID: <47A24E48.30402@codemonkey.ws> (raw)
In-Reply-To: <20080131094613.GE4003@shareable.org>

Jamie Lokier wrote:
> Anthony Liguori wrote:
>   
>> VGA framebuffer operations come in as memory operations.  They're 
>> tracked by watching what memory gets dirtied.  This can only operate at 
>> a page-granularity so this results in scan-line granularity updates.  
>> The VNC front-end goes to great lengths to keep a shadowed framebuffer 
>> and reduce these updates to a smaller update region.  You could possibly 
>> look at refactoring that code.  However...
>>     
>
> That update region code should probably be moved to something generic
> and made into a generic display option.
>
> Reducing update region is logically orthogonal, and could work with
> any update method (e.g. local X11, remote X11, local X11-OpenGL,
> remote X11-OpenGL, SDL etc.).  With some of those, for some people
> (especially some but not all remote setups) it might be worth it.
>
>   
>> I would be amazed if screen updates on OS X are so slow that it would 
>> make a difference if updates are in scanline granularities.  The copying 
>> latency is nothing compared to the other latencies in QEMU.  A modern 
>> processor can move memory at an extremely high speed.
>>
>> At a refresh rate of 30 times per second, this is only ~4MB of data for 
>> mouse movements.  A typical processor can easily handle many GB of data 
>> per second.
>>     
>
> That's 16MB/frame on an Apple Cinema display at 32bpp, which is
> 0.5GB/sec.  Not too much, but not free either :-)
>   

But your guest isn't displaying to the entire screen...  I was assuming 
a 32-pixel height, 1024 pixel wide region.

Regards,

Anthony Liguori

> -- Jamie
>
>
>   

  parent reply	other threads:[~2008-01-31 23:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-21 16:18 [Qemu-devel] [patch] cocoa.m - Core Graphics support Mike Kronenberg
2008-01-30 18:59 ` Alexander Graf
2008-01-30 19:05   ` Alexander Graf
2008-01-30 20:30   ` Mike Kronenberg
2008-01-30 20:39     ` Johannes Schindelin
2008-01-30 21:18       ` andrzej zaborowski
2008-01-31  9:15         ` Jamie Lokier
2008-01-30 21:00     ` Pierre d'Herbemont
2008-01-30 21:54     ` Anthony Liguori
2008-01-31  9:46       ` Jamie Lokier
2008-01-31 11:38         ` Julian Seward
2008-01-31 22:40         ` Anthony Liguori [this message]
2008-01-31 23:03           ` Jamie Lokier
2008-01-31  8:29     ` Alexander Graf
2008-01-30 20:44   ` Mike Kronenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47A24E48.30402@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).