Date: Wed, 4 Dec 2002 20:11:25 +0100 From: Stijn Hoop <stijn@win.tue.nl> To: Terry Lambert <tlambert2@mindspring.com> Cc: hackers@freebsd.org Subject: Re: [nephtes@openface.ca: [Xmame] Use of usleep() with -sleepidle] Message-ID: <20021204191125.GG52541@pcwin002.win.tue.nl> In-Reply-To: <3DEE4418.868B4936@mindspring.com> References: <20021202151816.GJ83264@pcwin002.win.tue.nl> <20021202114019.R31106-100000@patrocles.silby.com> <20021204113154.GA205@pcwin002.win.tue.nl> <3DEE4418.868B4936@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--l+goss899txtYvYf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 04, 2002 at 10:06:16AM -0800, Terry Lambert wrote: [snip] > Increased context switch overhead. Yes, Mike's explanation was clear. > Actually, for the case you are talking about, your emulator should > be using aggregate instead of discrete timeouts, and you would not > be having a problem. It's not useful to do 100 1ms timeouts to > achieve a 100ms timeout, when you can ask for a single 100ms > timeout. I would count this as a bug in your emulator. Yes, I would count it as a bug in any application in fact. But these benchmarks are used to determine which of the various _sleep functions would be appropriate to use in the idle loop of the emulator while not dropping too many frames. Sleeping for a minimum of 10 ms is a lot if you want to achieve a steady 60 frames / second. --Stijn --=20 The rain it raineth on the just And also on the unjust fella, But chiefly on the just, because The unjust steals the just's umbrella. --l+goss899txtYvYf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE97lNdY3r/tLQmfWcRAsqpAKCOhc5PUpJo/F8hsKgqiwZMf5einACggmoh Q+PY6+PHotlIXj44KayG/kk= =cKTV -----END PGP SIGNATURE----- --l+goss899txtYvYf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021204191125.GG52541>