Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32747
| From | "Chris M. Thomasson" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: 3d, twisted potential field. Half assed dna look about it... |
| Date | 2017-03-13 13:25 -0700 |
| Organization | n/a |
| Message-ID | <oa6v2u$hvk$1@dont-email.me> (permalink) |
| References | <oa2rn3$j4k$1@dont-email.me> <9aa42ae6-8c59-4bce-b9e8-c4b2616844f0@googlegroups.com> |
On 3/12/2017 8:10 AM, Michael Haufe (TNO) wrote: > On Sunday, March 12, 2017 at 1:03:46 AM UTC-6, Chris M. Thomasson wrote: >> Here is the experimental online WebGL example: >> [...] >> Any thoughts? This should get better FPS than some of my other animations... > > FYI, Array.prototype.push(...) can take multiple arguments > > So the following: > > a.push(v[0]); > a.push(v[1]); > a.push(v[2]); > a.push(v[3]); > > can become: > > a.push(v[0], v[1], v[2], v[3]) > > or even: > > a.push.apply(a,v) > > or with a modern browser: > > a.push(...v) > Ummm, I did not really know about that aspect of the Array push function; thank you Michael. Anybody that reads my JavaScript code, sort of knows that I am _not_ an experienced native in the language. I love to use arrays and C style, but the former can really ruin performance wrt, ummm, say... GC? ;^)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
3d, twisted potential field. Half assed dna look about it... "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-03-11 23:03 -0800
Re: 3d, twisted potential field. Half assed dna look about it... jonas.thornvall@gmail.com - 2017-03-12 06:07 -0700
Re: 3d, twisted potential field. Half assed dna look about it... jonas.thornvall@gmail.com - 2017-03-12 06:10 -0700
Re: 3d, twisted potential field. Half assed dna look about it... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-12 08:10 -0700
Re: 3d, twisted potential field. Half assed dna look about it... "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-03-13 13:25 -0700
Re: 3d, twisted potential field. Half assed dna look about it... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-13 17:36 -0700
Re: 3d, twisted potential field. Half assed dna look about it... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-03-12 08:32 -0700
csiph-web