[Verse-dev] Timing problem on Mac OS X

Emil Brink emil at obsession.se
Mon Feb 14 15:32:37 CET 2005


On Mon, 14 Feb 2005 14:50:50 +0100
Emil Brink <emil at obsession.se> wrote:

> Eskil,
> 
> I've been looking into Verse on Mac OS X, since new coworker
> Camilla reported problems.
> 
> Not sure if I've really found the root cause yet, but I do
> have at least one suspect. This code, in the main input loop
> of verse_callback_update():

[snip] 
> The loop above blindly assumes that wait_for_incoming() always does
> the right thing, and doesn't in fact *measure* the time spent, so
> it's fooled and things take too long time.

It does seem that fixing that helped a lot, it now runs alot happier
on Mac OS X.

I changed the v_n_wait_for_incoming() function to return the number
of microseconds it ran for, and also the loop snipped above but
quoted in the original message, so it uses that return value for
its timing accounting.

Regards,

/Emil


More information about the Verse-dev mailing list