-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add render_sync=false to resolve mouse lag issue. Tracked-On: OAM-120831 Signed-off-by: Suresh, Prashanth <[email protected]>
- Loading branch information
1 parent
c087341
commit c92e1f7
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
host/vm-manager/0012-Solve-mouse-lag-issue-in-Android.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|