[Verse-dev] sending packets too slow

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Aug 22 15:28:58 CEST 2005


Hi,

It seems that packets are not sent fast enough, at least on
Mac OS X.  The code at the end of verse_callback_update
does roughly this:

while not all microseconds passed:
	wait for incoming 100 microseconds
	get incoming packets
	send one packet

The problem is that even if 100 microseconds is passed to
select(), it waits at least 10 milliseconds. This is probably
directly related to the time quantum Mac OS X uses.

The result is that it waits too long, and packets are not sent
fast enough. Maybe it should just compute the number of
packets to be sent within the given time, send these packets,
and then wait for incoming packets?

Brecht.


More information about the Verse-dev mailing list