[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] experience with SDL2, event loop & main thread
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] experience with SDL2, event loop & main thread |
Date: |
Mon, 12 Dec 2016 18:36:16 +0800 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Mon, 12/12 12:20, Liviu Ionescu wrote:
>
> > On 12 Dec 2016, at 11:39, Fam Zheng <address@hidden> wrote:
> >
> > ... I myself know next to nothing about SDL project.
>
> ok, neither do I.
>
>
> do you have any comments on the current situation of the SDL integration in
> QEMU? any comments on the conclusions I reached after integrating SDL2 into
> GNU ARM Eclipse QEMU?
>
> personally I do not like at all polling the SDL loop every 10 ms on a timer,
> but I currently have no other solution. I tried to move the I/O loop on a
> separate thread, but the Windows implementation of `poll` works only on the
> main thread.
Like I said ealier, instead of "polling" SDL events in a timer, how about
registering an EventNotifier in the main thread which is notified by the vCPU
thread upon a new graphics operation? That will fix the latency issue.
Fam
- [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/10
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/11
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread,
Fam Zheng <=
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Daniel P. Berrange, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/12
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Fam Zheng, 2016/12/13
- Re: [Qemu-devel] experience with SDL2, event loop & main thread, Liviu Ionescu, 2016/12/13