Re: [Fresco-devel] animation

Nick Lewycky <[email protected]>
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
Jay McCarthy wrote:
> On Sun, 2002-06-30 at 09:02, Nick Lewycky wrote:
>>Any ideas?
> 
> Would it be stupid and lurker-ish to suggest that damage generate an
> event and thus the code would remain the same?

Not at all, it sounds like a reasonable solution. Looking into it I 
found that the event manager doesn't block on its own, but calls 
Console->next_event() which blocks. This means that the only events it 
can receive are ones that come in from GGI or SDL.

Making damage handling event driven sounds like a good idea in general. 
Maybe the solution involves having (who?) call into the server to tell 
it that there's been damage, and the server does nothing except sleep 
until awaken by either a call to fresh_damage or fresh_event.

Similarly, the Console could just be a thread that sleeps until it 
receives an event (from GGI or SDL) and informs the main server thread.

I don't know enough about the current damage system to comment on 
whether that would be possible now or if it would mean breaking 
something into separate threads or somesuch.

Nick Lewycky
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.