From: "Daniel P. Berrange" <berrange@redhat.com>
To: Jindrich Makovicka <makovick@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] smoother sdl display & mouse
Date: Tue, 24 Jul 2007 19:44:12 +0100 [thread overview]
Message-ID: <20070724184412.GG23597@redhat.com> (raw)
In-Reply-To: <20070724195030.2fd0cabc@holly>
On Tue, Jul 24, 2007 at 07:50:30PM +0200, Jindrich Makovicka wrote:
> Hi,
>
> the attached patch modifies the SDL display refresh code so the mouse
> and keyboard events are processed each 10 ms instead of 30. This causes
> much better mouse behavior due to lower latency.
>
> By default, display is still refreshed only each 30 ms to prevent the
> increase of the cpu load, but it is possible to tune the refresh rate
> via the -sdl-decimate option.
Using a command line argument to change the refresh rate doesn't seem like
a particularly optional solution. It think it would be better to have QEMU
automatically adapt the refresh rate. eg, it would start off refreshing SDL
at 30ms intervals. If it sees a keyboard or mouse event, it would increase
the refresh rate to 10ms. If, say, 100ms passes without any further events,
then it could decrease it to 30ms again.
That way everyone would always get the low CPU load, unless they were
actaully interacting with the mouse/keyboard in which case it would tune
itself for interactive response.
Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
next prev parent reply other threads:[~2007-07-24 18:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 17:50 [Qemu-devel] [PATCH] smoother sdl display & mouse Jindrich Makovicka
2007-07-24 18:44 ` Daniel P. Berrange [this message]
2007-07-29 15:23 ` Jindrich Makovicka
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=20070724184412.GG23597@redhat.com \
--to=berrange@redhat.com \
--cc=makovick@gmail.com \
--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).