* Mouse motion lags
@ 2009-01-01 17:05 Volodymyr Buell
2009-01-01 21:44 ` Todd Deshane
2009-01-04 13:27 ` Avi Kivity
0 siblings, 2 replies; 11+ messages in thread
From: Volodymyr Buell @ 2009-01-01 17:05 UTC (permalink / raw)
To: kvm@vger.kernel.org
Hi everybody,
I switched to KVM some time ago from vmware and VB. Everything works
great but there are noticeable lags in mouse motion in comparison with
other VMs.
Is this a known issue? Are there any optimizations for that?
KVM: 79
Distr: Ubuntu Intrepid & Jaunty
Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
es1370 -m 750 -smp 2 win.qcow
Thanks,
Volodymyr
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-01 17:05 Mouse motion lags Volodymyr Buell
@ 2009-01-01 21:44 ` Todd Deshane
2009-01-01 22:08 ` Volodymyr Buell
2009-01-04 13:27 ` Avi Kivity
1 sibling, 1 reply; 11+ messages in thread
From: Todd Deshane @ 2009-01-01 21:44 UTC (permalink / raw)
To: Volodymyr Buell; +Cc: kvm@vger.kernel.org
On Thu, Jan 1, 2009 at 12:05 PM, Volodymyr Buell <vbuell@gmail.com> wrote:
> Hi everybody,
>
> I switched to KVM some time ago from vmware and VB. Everything works
> great but there are noticeable lags in mouse motion in comparison with
> other VMs.
> Is this a known issue? Are there any optimizations for that?
>
> KVM: 79
> Distr: Ubuntu Intrepid & Jaunty
> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
> es1370 -m 750 -smp 2 win.qcow
>
Try adding -usb -usbdevice tablet
Hope that helps.
Cheers,
Todd
--
Todd Deshane
http://todddeshane.net
http://runningxen.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-01 21:44 ` Todd Deshane
@ 2009-01-01 22:08 ` Volodymyr Buell
2009-01-06 23:04 ` Jindrich Makovicka
0 siblings, 1 reply; 11+ messages in thread
From: Volodymyr Buell @ 2009-01-01 22:08 UTC (permalink / raw)
To: kvm@vger.kernel.org
On Thu, Jan 1, 2009 at 11:44 PM, Todd Deshane <deshantm@gmail.com> wrote:
> On Thu, Jan 1, 2009 at 12:05 PM, Volodymyr Buell <vbuell@gmail.com> wrote:
>> Hi everybody,
>>
>> I switched to KVM some time ago from vmware and VB. Everything works
>> great but there are noticeable lags in mouse motion in comparison with
>> other VMs.
>> Is this a known issue? Are there any optimizations for that?
>>
>> KVM: 79
>> Distr: Ubuntu Intrepid & Jaunty
>> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
>> es1370 -m 750 -smp 2 win.qcow
>>
>
> Try adding -usb -usbdevice tablet
>
> Hope that helps.
Unfortunately it brings yet more laggy result. It looks like mouse
filtering in first person action games but again with the delay I
mentioned before it's nearly unusable...
--
Thanks,
Volodymyr
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-01 17:05 Mouse motion lags Volodymyr Buell
2009-01-01 21:44 ` Todd Deshane
@ 2009-01-04 13:27 ` Avi Kivity
2009-01-04 19:58 ` nuitari
1 sibling, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2009-01-04 13:27 UTC (permalink / raw)
To: Volodymyr Buell; +Cc: kvm@vger.kernel.org
Volodymyr Buell wrote:
> Hi everybody,
>
> I switched to KVM some time ago from vmware and VB. Everything works
> great but there are noticeable lags in mouse motion in comparison with
> other VMs.
> Is this a known issue? Are there any optimizations for that?
>
> KVM: 79
> Distr: Ubuntu Intrepid & Jaunty
> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
> es1370 -m 750 -smp 2 win.qcow
>
Is this under guest or host load? Or just moving the mouse around?
Is the host swapping by any chance?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-04 19:58 ` nuitari
@ 2009-01-04 19:57 ` Avi Kivity
2009-01-06 6:26 ` Antoine Martin
1 sibling, 0 replies; 11+ messages in thread
From: Avi Kivity @ 2009-01-04 19:57 UTC (permalink / raw)
To: nuitari; +Cc: Volodymyr Buell, kvm@vger.kernel.org
nuitari@melchior.nuitari.net wrote:
> I've noticed that issue on guest load, no swapping.
> But even just moving the mouse around feels more laggy then under vmware.
> I've tried mine with just 1 guest cpu.
What sort of guest load?
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-04 13:27 ` Avi Kivity
@ 2009-01-04 19:58 ` nuitari
2009-01-04 19:57 ` Avi Kivity
2009-01-06 6:26 ` Antoine Martin
0 siblings, 2 replies; 11+ messages in thread
From: nuitari @ 2009-01-04 19:58 UTC (permalink / raw)
To: Avi Kivity; +Cc: Volodymyr Buell, kvm@vger.kernel.org
>> Hi everybody,
>>
>> I switched to KVM some time ago from vmware and VB. Everything works
>> great but there are noticeable lags in mouse motion in comparison with
>> other VMs.
>> Is this a known issue? Are there any optimizations for that?
>>
>> KVM: 79
>> Distr: Ubuntu Intrepid & Jaunty
>> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
>> es1370 -m 750 -smp 2 win.qcow
>>
>
> Is this under guest or host load? Or just moving the mouse around?
>
> Is the host swapping by any chance?
I've noticed that issue on guest load, no swapping.
But even just moving the mouse around feels more laggy then under vmware.
I've tried mine with just 1 guest cpu.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-04 19:58 ` nuitari
2009-01-04 19:57 ` Avi Kivity
@ 2009-01-06 6:26 ` Antoine Martin
2009-01-06 7:11 ` Jamie Kirkpatrick
2009-01-06 7:36 ` Ian Kirk
1 sibling, 2 replies; 11+ messages in thread
From: Antoine Martin @ 2009-01-06 6:26 UTC (permalink / raw)
To: nuitari; +Cc: Avi Kivity, Volodymyr Buell, kvm@vger.kernel.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
nuitari@melchior.nuitari.net wrote:
>>> Hi everybody,
>>>
>>> I switched to KVM some time ago from vmware and VB. Everything works
>>> great but there are noticeable lags in mouse motion in comparison with
>>> other VMs.
>>> Is this a known issue? Are there any optimizations for that?
>>>
>>> KVM: 79
>>> Distr: Ubuntu Intrepid & Jaunty
>>> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
>>> es1370 -m 750 -smp 2 win.qcow
>>>
>>
>> Is this under guest or host load? Or just moving the mouse around?
>>
>> Is the host swapping by any chance?
>
> I've noticed that issue on guest load, no swapping.
> But even just moving the mouse around feels more laggy then under vmware.
> I've tried mine with just 1 guest cpu.
I've noticed what I believe to be the same bug: when moving the mouse
around the vnc viewer, the guest does not seem to follow the same
acceleration and I end up with 2 pointers completely out of sync.
This makes it really hard to use the mouse (especially as the real
pointer often moves off-screen before you reach the part of the guest
screen that you need..)
I normally would not care about mouse and UI (I run most guests in
no-graphic mode), but I have to run some tests against "that-other-OS"
at the moment, and this makes it even more of a nightmare.
Any advice would be much appreciated.
I have tried various VNC clients (no effect), looked for mouse options,
etc..
Thanks
Antoine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREKAAYFAkli+XkACgkQGK2zHPGK1rucZQCfcqAYZxEjRDUJU+If1AQkIXdD
T+IAniL0CNXWJbrF1Okfm9It8Sj2RC9W
=9yrd
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-06 6:26 ` Antoine Martin
@ 2009-01-06 7:11 ` Jamie Kirkpatrick
2009-01-06 13:05 ` Antoine Martin
2009-01-06 7:36 ` Ian Kirk
1 sibling, 1 reply; 11+ messages in thread
From: Jamie Kirkpatrick @ 2009-01-06 7:11 UTC (permalink / raw)
To: Antoine Martin; +Cc: nuitari, Avi Kivity, Volodymyr Buell, kvm@vger.kernel.org
Try adding -usbdevice tablet. This should sort it out.
2009/1/6 Antoine Martin <antoine@nagafix.co.uk>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> nuitari@melchior.nuitari.net wrote:
>>>> Hi everybody,
>>>>
>>>> I switched to KVM some time ago from vmware and VB. Everything works
>>>> great but there are noticeable lags in mouse motion in comparison with
>>>> other VMs.
>>>> Is this a known issue? Are there any optimizations for that?
>>>>
>>>> KVM: 79
>>>> Distr: Ubuntu Intrepid & Jaunty
>>>> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
>>>> es1370 -m 750 -smp 2 win.qcow
>>>>
>>>
>>> Is this under guest or host load? Or just moving the mouse around?
>>>
>>> Is the host swapping by any chance?
>>
>> I've noticed that issue on guest load, no swapping.
>> But even just moving the mouse around feels more laggy then under vmware.
>> I've tried mine with just 1 guest cpu.
>
> I've noticed what I believe to be the same bug: when moving the mouse
> around the vnc viewer, the guest does not seem to follow the same
> acceleration and I end up with 2 pointers completely out of sync.
>
> This makes it really hard to use the mouse (especially as the real
> pointer often moves off-screen before you reach the part of the guest
> screen that you need..)
> I normally would not care about mouse and UI (I run most guests in
> no-graphic mode), but I have to run some tests against "that-other-OS"
> at the moment, and this makes it even more of a nightmare.
>
> Any advice would be much appreciated.
> I have tried various VNC clients (no effect), looked for mouse options,
> etc..
>
> Thanks
> Antoine
>
>
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEAREKAAYFAkli+XkACgkQGK2zHPGK1rucZQCfcqAYZxEjRDUJU+If1AQkIXdD
> T+IAniL0CNXWJbrF1Okfm9It8Sj2RC9W
> =9yrd
> -----END PGP SIGNATURE-----
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Jamie Kirkpatrick
07818 422311
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-06 6:26 ` Antoine Martin
2009-01-06 7:11 ` Jamie Kirkpatrick
@ 2009-01-06 7:36 ` Ian Kirk
1 sibling, 0 replies; 11+ messages in thread
From: Ian Kirk @ 2009-01-06 7:36 UTC (permalink / raw)
To: Antoine Martin; +Cc: nuitari, Avi Kivity, Volodymyr Buell, kvm@vger.kernel.org
Antoine Martin wrote:
> I've noticed what I believe to be the same bug: when moving the mouse
> around the vnc viewer, the guest does not seem to follow the same
> acceleration and I end up with 2 pointers completely out of sync.
If the guest is Windows, turn off "Enhance pointer precision" under
Control Panel->Mouse->Pointer Options. I found this to make the pointers
move at the same rate.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-06 7:11 ` Jamie Kirkpatrick
@ 2009-01-06 13:05 ` Antoine Martin
0 siblings, 0 replies; 11+ messages in thread
From: Antoine Martin @ 2009-01-06 13:05 UTC (permalink / raw)
To: Jamie Kirkpatrick
Cc: nuitari, Avi Kivity, Volodymyr Buell, kvm@vger.kernel.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Jamie Kirkpatrick wrote:
> Try adding -usbdevice tablet. This should sort it out.
Thank you very much. That did the trick!
>
> 2009/1/6 Antoine Martin <antoine@nagafix.co.uk>:
> nuitari@melchior.nuitari.net wrote:
>>>>>> Hi everybody,
>>>>>>
>>>>>> I switched to KVM some time ago from vmware and VB. Everything works
>>>>>> great but there are noticeable lags in mouse motion in comparison with
>>>>>> other VMs.
>>>>>> Is this a known issue? Are there any optimizations for that?
>>>>>>
>>>>>> KVM: 79
>>>>>> Distr: Ubuntu Intrepid & Jaunty
>>>>>> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
>>>>>> es1370 -m 750 -smp 2 win.qcow
>>>>>>
>>>>> Is this under guest or host load? Or just moving the mouse around?
>>>>>
>>>>> Is the host swapping by any chance?
>>>> I've noticed that issue on guest load, no swapping.
>>>> But even just moving the mouse around feels more laggy then under vmware.
>>>> I've tried mine with just 1 guest cpu.
> I've noticed what I believe to be the same bug: when moving the mouse
> around the vnc viewer, the guest does not seem to follow the same
> acceleration and I end up with 2 pointers completely out of sync.
>
> This makes it really hard to use the mouse (especially as the real
> pointer often moves off-screen before you reach the part of the guest
> screen that you need..)
> I normally would not care about mouse and UI (I run most guests in
> no-graphic mode), but I have to run some tests against "that-other-OS"
> at the moment, and this makes it even more of a nightmare.
>
> Any advice would be much appreciated.
> I have tried various VNC clients (no effect), looked for mouse options,
> etc..
>
> Thanks
> Antoine
>
>
>
>
>
>
- --
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREKAAYFAkljVv0ACgkQGK2zHPGK1rs7uwCeJTGgITfgi81RRCXZSoau8JnK
z3UAniULdjQ5e+sVSMxv8Zm7RdrIRAiK
=oWZ0
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Mouse motion lags
2009-01-01 22:08 ` Volodymyr Buell
@ 2009-01-06 23:04 ` Jindrich Makovicka
0 siblings, 0 replies; 11+ messages in thread
From: Jindrich Makovicka @ 2009-01-06 23:04 UTC (permalink / raw)
To: kvm
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]
On Fri, 2 Jan 2009 00:08:27 +0200
"Volodymyr Buell" <vbuell@gmail.com> wrote:
> On Thu, Jan 1, 2009 at 11:44 PM, Todd Deshane <deshantm@gmail.com>
> wrote:
> > On Thu, Jan 1, 2009 at 12:05 PM, Volodymyr Buell <vbuell@gmail.com>
> > wrote:
> >> Hi everybody,
> >>
> >> I switched to KVM some time ago from vmware and VB. Everything
> >> works great but there are noticeable lags in mouse motion in
> >> comparison with other VMs.
> >> Is this a known issue? Are there any optimizations for that?
> >>
> >> KVM: 79
> >> Distr: Ubuntu Intrepid & Jaunty
> >> Command line: QEMU_AUDIO_DRV=sdl; kvm -net nic -net user -soundhw
> >> es1370 -m 750 -smp 2 win.qcow
> >>
> >
> > Try adding -usb -usbdevice tablet
> >
> > Hope that helps.
>
> Unfortunately it brings yet more laggy result. It looks like mouse
> filtering in first person action games but again with the delay I
> mentioned before it's nearly unusable...
You can try the attached patch - it shortens the screen update interval
when the mouse moves. It's just a proof of concept and a little bit
ugly, but should work.
I once tried to submit something similar to QEMU upstream, when the
screen update interval was still hardcoded, but the patch wasn't
accepted. There could be some chance now when the update interval is
already dynamic so the modification is trivial.
--
Jindrich Makovicka
[-- Attachment #2: sdl.c.diff --]
[-- Type: text/x-patch, Size: 919 bytes --]
--- sdl.c.orig 2008-12-24 15:24:58.000000000 +0100
+++ sdl.c 2009-01-06 23:53:26.282639309 +0100
@@ -356,6 +356,7 @@
SDL_Event ev1, *ev = &ev1;
int mod_state;
int buttonstate = SDL_GetMouseState(NULL, NULL);
+ int moved = 0;
if (last_vm_running != vm_running) {
last_vm_running = vm_running;
@@ -484,6 +485,7 @@
absolute_enabled) {
sdl_send_mouse_event(ev->motion.xrel, ev->motion.yrel, 0,
ev->motion.x, ev->motion.y, ev->motion.state);
+ moved = 1;
}
break;
case SDL_MOUSEBUTTONDOWN:
@@ -536,6 +538,10 @@
break;
}
}
+ if (moved && ds->gui_timer_interval == 0)
+ ds->gui_timer_interval = 10;
+ else if (!moved && ds->gui_timer_interval == 10)
+ ds->gui_timer_interval = 0;
}
static void sdl_fill(DisplayState *ds, int x, int y, int w, int h, uint32_t c)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-01-06 23:04 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-01 17:05 Mouse motion lags Volodymyr Buell
2009-01-01 21:44 ` Todd Deshane
2009-01-01 22:08 ` Volodymyr Buell
2009-01-06 23:04 ` Jindrich Makovicka
2009-01-04 13:27 ` Avi Kivity
2009-01-04 19:58 ` nuitari
2009-01-04 19:57 ` Avi Kivity
2009-01-06 6:26 ` Antoine Martin
2009-01-06 7:11 ` Jamie Kirkpatrick
2009-01-06 13:05 ` Antoine Martin
2009-01-06 7:36 ` Ian Kirk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox