[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] AES related question: How to keep track if my application is receiving input?



Hi,

On Tuesday 24 August 2010, m0n0 wrote:
> > Why do you want to call it 100/s? For an average user 10/s or less
> > seems enough to me.
>
> 1. Because rendering calculations must take place, network packets must
> be cared of, etc. - If NetSurf is currently rendering a page and then
> calls my gui_poll function, it's bad if I break for about 100ms ... this
> just delays page rendering.

Is evnt_multi() interrupted by a signal delivery like select() is?

If yes, you could put the network stuff to a separate process that
signals the UI process when downloads are completed and uses
e.g. shared memory to share the data with the renderer.

Btw. After Google's Chrome browser started using process separation,
Firefox is now also going to same direction, moving plugins like Flashplayer
to a separate processes and separating the HTML rendering engine process
from the UI that needs to be more interactive than the HTML content
rendering process can be...


> 2. Obviously this is not the case when rendering is finished. In that
> case I would like to use an envt_multi without timeout, but reporting
> every action I'm interested in...


	- Eero