Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37313
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Write to two separate arrays in realtime. |
| Date | 2019-09-21 11:48 +0200 |
| Message-ID | <guma04F9qicU1@mid.individual.net> (permalink) |
| References | <6df2cfcb-3e7a-4a51-90d0-0b21474b77c8@googlegroups.com> |
Jonas Thörnvall: > I write to an array in realtime to record keystrokes. > I would like an array with identical "elements", that i can also edit in realtime and use for rendering purpose. > > How do i achieve this, tried to call "write" sequential to another function workArray but it seem flaky do not work? You can't - JavaScript running in a browser is not suitable for realtime applications as even processing an event will take 10-20 ms. You need align the events to "time slots" e.g. 1/10th or 1/20th of a second. -- Arno Welzel https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Write to two separate arrays in realtime. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-20 05:38 -0700
Re: Write to two separate arrays in realtime. Arno Welzel <usenet@arnowelzel.de> - 2019-09-21 11:48 +0200
Re: Write to two separate arrays in realtime. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-21 05:40 -0700
csiph-web