Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Doing what you suggest, the timing for function calls using setInterval is just awful slow why????? Date: Mon, 2 Nov 2020 01:11:11 +0100 Lines: 29 Message-ID: References: <5189ddb2-f717-40ed-8ab7-d58f84427d8eo@googlegroups.com> <2ed575bd-296e-43df-92ab-09265c196d8bo@googlegroups.com> <2c544c3a-2dea-472e-87cb-9578fd09072bo@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net Tsvn0wBbiN5pDmfN5QjUcAf6dCYUJGOYGYZQ63urJeSMsF2uqe Cancel-Lock: sha1:ZxkKdMvcvu72WklN8G4SdHAmv28= In-Reply-To: <2c544c3a-2dea-472e-87cb-9578fd09072bo@googlegroups.com> Xref: csiph.com comp.lang.javascript:39101 Jonas Thörnvall: > Den söndag 1 november 2020 kl. 21:10:00 UTC+1 skrev Arno Welzel: >> Jonas Thörnvall: >> >> [...] >>> I am fully aware of Javascripts drawing/animation capabilities used it for a few projects. >>> >>> That is not the problem, the problem is its capabilities when it come to poll values from the UI. It hogs the processor and makes running calculations some 1000 to 10 000 times slower. >> >> Whatever "poll values from the UI" means. >> >> >> -- >> Arno Welzel >> https://arnowelzel.de > > Well isn't that what you do pull values or push values using a timer periodically? No, this is "using a timer periodically". This can of course not be faster as the timer runs. If the timer is set to run something every 4ms you get 250 runs per minute - this is not because of JavaScript being so slow, but the timer does not trigger the run more often. -- Arno Welzel https://arnowelzel.de