🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #28

Re: recursive requestAnimationFrame

#28
From: Jon Ribbens
Date: Mon, 09 Nov 2026 17:32
19 lines
2203 bytes
On 2026-11-09, Mikko <mikko.levanto@iki.fi> wrote:
> On 09/11/2026 15:53, Stefan Ram wrote:
>> ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
>>> Maybe that browser is showing you the /asynchronous call stack/
>>> ("Async Stack Traces"), not the execution stack. This async stack
>>> seems to be a history of scheduling ancestry. The browser saved
>>> a history of who scheduled whom.
>> 
>>    It's also possible that what you see /is/ the actual call stack,
>>    and there is some other part of the code that actually /is/
>>    recursive. I don't have Safari here to check this out.
>
> As my animation code calls requestAnimationFrame there is an indirect
> recursion if requestAnimationFrame is recursive. Otherwise I have no
> recursion that involves requestAnimationFrame.

I'm pretty sure requestAnimationFrame is like setTimeout - it
always returns immediately, and the function you pass it is
called asynchronously at a later point.
Technical Details
Message-ID: <slrn11f40t2.2pa.jon+usenet@raven.unequivocal.eu>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11csaeg$169bs$1@dont-email.me> <stack-20261109141457@ram.dialup.fu-berlin.de> <stack-20261109145242@ram.dialup.fu-berlin.de> <11csv2v$1eil0$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Jon Ribbens <jon+usenet@unequivocal.eu>
Newsgroups: comp.lang.javascript
Subject: Re: recursive requestAnimationFrame
Date: Mon, 9 Nov 2026 17:32:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <slrn11f40t2.2pa.jon+usenet@raven.unequivocal.eu>
References: <11csaeg$169bs$1@dont-email.me>
 <stack-20261109141457@ram.dialup.fu-berlin.de>
 <stack-20261109145242@ram.dialup.fu-berlin.de>
 <11csv2v$1eil0$2@dont-email.me>
Injection-Date: Mon, 09 Nov 2026 17:32:19 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1541195"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/VMpBgaFT/vM+dQrGKhVYIjf/76JWHv/w="; posting-host="a3698ea141d316942f16902f889f9d25"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ZU8JQEQ6XFay0ZnQuggz+dXGMXU=
	sha1:sC/D3O3oqXvdVImo25yunMwb6QM= sha256:nT68rGIll/Ukb6fQeoo5w6r9Mq9ZszLGfbHK/zB8gEk=
	sha1:zHZGbkjk82AzAcaBKh0EC6OJBFg= sha256:rsdXsFJrX5D5V/cB+LYcUcW1vxN3fFAnk949oiFHJco=