News for hackers. Stuff that matters.
Re:Notch trying jsFiddle by alexhaefner on Monday December 03, 2012 @01:28AM (#4864205)
I respectfully disagree with your use of low level, though I do understand your analogy about the pixelbuffer being like a frame buffer.

But he's actually using Javascript arrays which can get passed around inside a javascript VM, and do not have a set size. Not very "low level".

I spent a moment and changed the arrays to Float32Arrays which have set sizes and sit in memory without being fucked with by the VM and sped the demo up dramatically.

http://jsfiddle.net/uzMPU/2612/

Re:Notch trying jsFiddle by malkia on Monday December 03, 2012 @04:03AM (#4864576)
If possible the map array should be uint8_t, while texmap uint32_t
Re:Notch trying jsFiddle by look_lookatme on Monday December 03, 2012 @01:52AM (#4864262)
Side by side, this is amazingly smoother than the OP.
Re:Notch trying jsFiddle by philf on Monday December 03, 2012 @04:17AM (#4864610)
For me, the difference is only visible using Firefox. Chromium even renders the inefficient original version smoothly.
Re:Notch trying jsFiddle by mdonahoe on Tuesday December 04, 2012 @05:33AM (#4870264)
The magic of Just In Time compilation perhaps?
Re:Notch trying jsFiddle by Tloewald on Monday December 03, 2012 @08:25AM (#4865255)
Interesting -- this is slower on my iPad.