[PATCH] ui/gtk: Update the refresh rate for gl-area too

2021-10-24 Thread Nikola Pavlica
ifically. Thankfully the fix was simple and without much hassle. Thanks, Nikola PS: It seems that my patch has gone missing from the mailing list, hence I'm sending it again. Sorry for any inconveniences. Signed-off-by: Nikola Pavlica --- ui/gtk-gl-area.c | 3 +++ 1 file changed, 3 inser

[PATCH] ui/gtk: Update the refresh rate for gl-area too

2021-10-05 Thread Nikola Pavlica
ifically. Thankfully the fix was simple and without much hassle. Thanks, Nikola Signed-off-by: Nikola Pavlica --- ui/gtk-gl-area.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c index b23523748e..afcb29f658 100644 --- a/ui/gtk-gl-area.c +++ b/ui/gtk

[PATCH 1/2] ui/gtk: expose gd_monitor_update_interval

2021-01-14 Thread Nikola Pavlica
n, we need to expose/globalize it in the include/ui/gtk.h file. Signed-off-by: Nikola Pavlica --- include/ui/gtk.h | 1 + ui/gtk.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ui/gtk.h b/include/ui/gtk.h index 80851fb4c7..3f395d7f94 100644 --- a/include/ui/

[PATCH 0/2] ui/gtk: Update refresh rate on EGL as well

2021-01-14 Thread Nikola Pavlica
formatted patch emailss, still can't get a hand of how git send-email works. Nikola Pavlica (2): ui/gtk: expose gd_monitor_update_interval ui/gtk: update monitor interval on egl displays include/ui/gtk.h | 1 + ui/gtk-egl.c | 3 +++ ui/gtk.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) -- 2.30.0

[PATCH 2/2] ui/gtk: update monitor interval on egl displays

2021-01-14 Thread Nikola Pavlica
be in gd_egl_refresh where the display output gets updated, in the same vain as how it's done for normal GTK UIs (aka. those without EGL) - in it's display refresh function. Since the gd_monitor_update_interval function now is exposed, we are going to use it to update the refresh rate. Signed

[PATCH 1/2] ui/gtk: expose gd_monitor_update_interval

2021-01-14 Thread Nikola Pavlica
n, we need to expose/globalize it in the include/ui/gtk.h file. Signed-off-by: Nikola Pavlica --- include/ui/gtk.h | 1 + ui/gtk.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ui/gtk.h b/include/ui/gtk.h index 80851fb4c7..3f395d7f94 100644 --- a/include/ui/

[PATCH 0/2] ui/gtk: run gd_monitor_update_interval on EGL as well

2021-01-14 Thread Nikola Pavlica
These patches regard the use-case of GPU-passthrough on QEMU for accelerated graphics. Usually when people use GPU-passthrough on QEMU, they opt to have a physical seperate graphics card that gets passed through to QEMU using something called "PCIe passthrough". Since the display output is inv

[PATCH 0/2] ui/gtk: run gd_monitor_update_interval on EGL as well

2021-01-14 Thread Nikola Pavlica
These patches regard the use-case of GPU-passthrough on QEMU for accelerated graphics. Usually when people use GPU-passthrough on QEMU, they opt to have a physical seperate graphics card that gets passed through to QEMU using something called "PCIe passthrough". Since the display output is inv

[PATCH 2/2] ui/gtk: update monitor interval on egl displays

2021-01-14 Thread Nikola Pavlica
be in gd_egl_refresh where the display output gets updated, in the same vain as how it's done for normal GTK UIs (aka. those without EGL) - in it's display refresh function. Since the gd_monitor_update_interval function now is exposed, we are going to use it to update the refresh rate. Signed

[PATCH 2/2] ui/gtk: update monitor interval on egl displays

2021-01-14 Thread Nikola Pavlica
be in gd_egl_refresh where the display output gets updated, in the same vain as how it's done for normal GTK UIs (aka. those without EGL) - in it's display refresh function. Since the gd_monitor_update_interval function now is exposed, we are going to use it to update the refresh rate. Signed

[PATCH 1/2] ui/gtk: expose gd_monitor_update_interval

2021-01-14 Thread Nikola Pavlica
n, we need to expose/globalize it in the include/ui/gtk.h file. Signed-off-by: Nikola Pavlica --- include/ui/gtk.h | 1 + ui/gtk.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ui/gtk.h b/include/ui/gtk.h index 80851fb4c7..3f395d7f94 100644 --- a/include/ui/

Fwd: [PATCH] ui/gtk: Update refresh rate for EGL as well

2020-12-10 Thread Nikola Pavlica
I guess "git send-email" didn't do much, so I'm just forwarding the email now. -- Forwarded message ------ From: Nikola Pavlica Subject: [PATCH] ui/gtk: Update refresh rate for EGL as well Date: 2020-12-10T13:40:06+0100 To: qemu-de...@nongnu.com Cc: Nikola Pavl

[PATCH v2 1/1] ui/gtk: Launching GTK UI with OpenGL on causes the refreshrate update to not run

2020-12-06 Thread Nikola Pavlica
As suggested before, I've instead copied the code to the appropriate callback function so that the refresh rate gets properly updated. Also to avoid repeating the gd_refresh_rate_millihz function, I've globalized it. I hope you don't mind. Signed-off-by: Nikola Pavli

[PATCH 1/1] ui/gtk: Launching GTK UI with OpenGL on causes the refreshrate update to not run

2020-12-06 Thread Nikola Pavlica
above the code that checks for OpenGL. Or because OpenGL is meant to be called back with the "render" callback, should we instead add the refresh rate checking code there? Anyway, regardless of method, I'm happy with any solution that just fixes the issue. Signed-off-by: Ni

Re: [PATCH] ui/gtk: Fix regression in gd_refresh_rate_milihz

2020-08-07 Thread Nikola Pavlica
Apologies, false alarm. I found out that my testing methodology was flawed. Close this. On Sat, Aug 8, 2020 at 00:25, Nikola Pavlica wrote: From: Nikola Pavlica <mailto:pavlica.nik...@gmail.com>> In January (I think), I suggested a fix for the constant refresh rate issue in QEM

[PATCH] ui/gtk: Fix regression in gd_refresh_rate_milihz

2020-08-07 Thread Nikola Pavlica
From: Nikola Pavlica <mailto:pavlica.nik...@gmail.com>> In January (I think), I suggested a fix for the constant refresh rate issue in QEMU despite VMs being able to render graphics at a framerate much higher than that. Here's the link to the patch in question: <https:/

[PATCH v3] display/gtk: get proper refreshrate

2019-12-31 Thread Nikola Pavlica
>From 2d85b4a0edba0bf3fa3c221dcbde7e82a6a771fa Mon Sep 17 00:00:00 2001 From: Nikola Pavlica Date: Tue, 31 Dec 2019 18:16:28 +0100 Subject: [PATCH v3] display/gtk: get proper refreshrate Hi, QEMU mailing list. This is the third revision of the patch involving the GTK display output getting

[PATCH] display/gtk: get proper refreshrate

2019-12-30 Thread Nikola Pavlica
>From 70c95b18fa056b2dd0ecc202ab517bc775b986da Mon Sep 17 00:00:00 2001 From: Nikola Pavlica Date: Mon, 30 Dec 2019 18:17:35 +0100 Subject: [PATCH] display/gtk: get proper refreshrate Signed-off-by: Nikola Pavlica --- ui/gtk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/ui/gtk.