Re: [Fresco-devel] animation
Nick Lewycky <[email protected]>
| Newsgroups | gmane.comp.video.fresco.devel |
|---|---|
| Message-ID | <[email protected]> |
So I had the chance to sleep and realized that it's not as simple as I thought the night before. I wrote: > block waiting for either an event or fresh damage How do I go about blocking for either one of these two things? I suggested adding the ability to do a non-blocking request to the Event Manager that would process events without waiting. Unfortunately, if I want to do a wait until event or damage, the server would have to sit in a polling loop. That's not very good at all. The next closest thing I could think of is blocking for events for no longer than a third of a second. After which point, we poll for damage. If there's either deal with it. Otherwise block for another third of a second. This is more like what the code does now, but I want to remove the 33fps cap if possible, and process events&damage as soon as they arrive, if possible. Any ideas? Thanks, Nick Lewycky