From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arne Babenhauserheide Newsgroups: gmane.lisp.guile.user Subject: Re: trying Chickadee Date: Wed, 05 Sep 2018 22:42:43 +0200 Message-ID: <875zzj4qws.fsf@web.de> References: <39f4077f-7cbe-a248-c6d8-e5771cbfa0b1@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1536180091 4069 195.159.176.226 (5 Sep 2018 20:41:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2018 20:41:31 +0000 (UTC) User-Agent: mu4e 1.0; emacs 25.3.1 Cc: Guile User , Zelphir Kaltstahl To: "Thompson\, David" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Sep 05 22:41:26 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxecA-0000xD-GL for guile-user@m.gmane.org; Wed, 05 Sep 2018 22:41:26 +0200 Original-Received: from localhost ([::1]:58020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxeeH-0004RC-18 for guile-user@m.gmane.org; Wed, 05 Sep 2018 16:43:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxedl-0004I4-Nj for guile-user@gnu.org; Wed, 05 Sep 2018 16:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxedg-0006Ns-Ql for guile-user@gnu.org; Wed, 05 Sep 2018 16:43:04 -0400 Original-Received: from mout.web.de ([212.227.17.11]:43779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxedf-0006K9-4c for guile-user@gnu.org; Wed, 05 Sep 2018 16:43:00 -0400 Original-Received: from fluss ([84.165.21.232]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lr2VT-1fKzyH1PoR-00egKC; Wed, 05 Sep 2018 22:42:54 +0200 In-reply-to: X-Provags-ID: V03:K1:yivkP04BLjNjLGhUhUW2cul/BKp823J0xf0C39cevxXl8smkzLH Lv0Rtxsjw5emLnRCn0YhZOHQdSjqjJfgT1PLwGaJw7l6nG4hNyh1AABrn7MiEjRu+sAkSnY zBryABXJZBUlnYWXlNrJiRzTexY8KfinhU54TLXAOmjxe3sqYIqGfUU+slnL4cv6xMnggqr BA2Fbx/t+XOzS7PFQsmGg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Rbb7XE4+t0w=:8qrgIdUL+vkIDtNdFlNmVC tximgn5wU1HE7zDRS9wNyMXNS5n8FAAJt3JqK0cv7JAae7ajqZsnebWAVFr/+L6yEiKcI7Vio 3WeYpCDFgaNdhhrbU3sofziW2k//cRM5axNIWIJs1w+ZAyVlFGdQ+3aBoN6uiFfHw3Pyihfpl xQ7xZBiLwIT1Z04pEbRXecGHmieOZg9gP8UCKkg7HQg0vZvgnoZQ4Vb+gzkqbW6n8fToll2Ms iC3e03LMCOo8v4cGmO7tDZDKibLQu97uBhiJOxdVPdnynndZWUAXQkPArqBbkRzJszlvk1ACS QJ6RqeqW/veivxjA/JmA1//sgZZHqmeTuA/poQ5BL/o5kL99zsWJalSjwF6Rc/SiJAHYvjbyV Q4vVV1yfuDDmYFfGNUGTctMfLfX6vIrqfv3nhWFq0K1twLFNdRSE/3lDXBdQzpx+Mjq0AHatu IZvat3kJiK5bBNkXRW/7AW2K+Nw3AycKvmAZtUpa9Mj6MeDXPuN6B60cwN/rChX91QV50fm4T OVAGk7jnjxchmOZ87kKmcmiS7iIYfFl3UvRIT9iz7VKhFoeM2908+RvkGuCIMdOo1Z+D5COML wQDQpEVBuF9x7KyjS0W1yFvusD2ImLol+zB54EewXhcZlC9xPjRaEWkyQm7fLiDIPhOesLN4f 4nTHUSWuEbRH9AeBo5kTcsO5qPUB9NDgQ4/GcBL2C4krOJGpBMmBx/lDF/UNXKBOuo1uEr7a8 YWuk92nnxwIcL96e+WeghHStEGRIq4RQhpNqPQG+6aNftjsGUK9kQyeWowg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.11 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14862 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thompson, David writes: > Correct, the game loop doesn't stop because you're not moving > anything. Chickadee's game loop renders frames as often as possible. > If 100% of one CPU core is being used, the likely culprit is that > Chickadee was unable to sync it's drawing with the monitor's refresh > rate, which could cause it to pause a bit after rendering each frame. > Perhaps I could automatically factor in a small usleep call when vsync > is unavailable in order to avoid this situation. That sounds important. In every game loop I wrote myself till now (only two or three) I had to add some small delay because otherwise people on laptops really notice this (though the real reason why I did it =E2=80=94 as opposed to the reasoning after the fact =E2=80=94 is that it just feels wro= ng to burn cycles without need). Adding a single 1 ms sleep in the game loop should never hurt, because even if someone has a 200Hz refresh rate (so you only have 5 ms to render), this sleep still only take up 20% of the time between frames. And it gives you some maneuvering mass if you find in the end that 10% performance are missing :-) Best wishes, Arne =2D- Unpolitisch sein hei=C3=9Ft politisch sein ohne es zu merken --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE801qEjXQSQPNItXAE++NRSQDw+sFAluQP8gACgkQE++NRSQD w+tgmw//VRrlcCHvLqM42H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