Skip to content

Commit

Permalink
Resolve mouse lag issue in Android.
Browse files Browse the repository at this point in the history
Add render_sync=false to resolve mouse lag issue.

Tracked-On: OAM-120831
Signed-off-by: Suresh, Prashanth <[email protected]>
  • Loading branch information
prashanth-intel committed Jun 14, 2024
1 parent c087341 commit c92e1f7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions host/vm-manager/0012-Solve-mouse-lag-issue-in-Android.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From ea84e6c518e99db522f534c1d6b81cb092d8fd53 Mon Sep 17 00:00:00 2001
From: Prashanth <[email protected]>
Date: Fri, 14 Jun 2024 22:07:46 +0800
Subject: [PATCH] Solve mouse lag issue in Android.

Add render_sync=false to resolve mouse lag issue.
---
src/guest/vm_builder_qemu.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/guest/vm_builder_qemu.cc b/src/guest/vm_builder_qemu.cc
index cfc74d5..a87eb11 100644
--- a/src/guest/vm_builder_qemu.cc
+++ b/src/guest/vm_builder_qemu.cc
@@ -411,7 +411,7 @@ bool VmBuilderQemu::SetupSriov(void) {
return false;
}

- emul_cmd_.append(" -device virtio-vga,max_outputs=" + ((numberOfDisplays > 0 ) ? std::to_string(numberOfDisplays) : "1") + ",blob=true"
+ emul_cmd_.append(" -device virtio-vga,max_outputs=" + ((numberOfDisplays > 0 ) ? std::to_string(numberOfDisplays) : "1") + ",blob=true,render_sync=false"
" -device vfio-pci,host=0000:00:02." + std::to_string(vf) +
" -object memory-backend-memfd,hugetlb=on,id=mem_sriov,size=" + mem_size +
" -machine memory-backend=mem_sriov");
--
2.34.1

0 comments on commit c92e1f7

Please sign in to comment.