From 9d7f773b9ce91f539825494658ee9bab1b1d9828 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 27 Jan 2020 01:55:14 +1100 Subject: [PATCH] [c-host] decrease LGMP polling interval to a sane value and comment --- LGMP | 2 +- VERSION | 2 +- c-host/src/app.c | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/LGMP b/LGMP index 1a27ea94..2ba8fd33 160000 --- a/LGMP +++ b/LGMP @@ -1 +1 @@ -Subproject commit 1a27ea94067dbfd38734a030145eb93ae4d2a958 +Subproject commit 2ba8fd3391759ad95384d598ab26e39283cbb71a diff --git a/VERSION b/VERSION index 862683a4..d20cc74e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-111-gd860d6b891+1 \ No newline at end of file +B1-115-gfea0a98b9e+1 \ No newline at end of file diff --git a/c-host/src/app.c b/c-host/src/app.c index 096869b1..c68f00e7 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -94,7 +94,14 @@ static int lgmpThread(void * opaque) DEBUG_ERROR("lgmpHostProcess Failed: %s", lgmpStatusString(status)); break; } - usleep(10000); + + /* + 2ms should be good for up to 500FPS, do not lower this value as excessive + polling of io memory at this time causes QEMU/KVM stalls due to an unknown + fault. + See: https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg06331.html + */ + usleep(2000); } app.running = false;