empaempa / GLOW

GLOW is a WebGL wrapper, which focuses on easy creation and use of shaders.
http://i-am-glow.com
MIT License
244 stars 28 forks source link

Added a changeTexture method on GLOW.Texture #17

Closed subblue closed 12 years ago

subblue commented 12 years ago

To easily swap images on existing texture objects

subblue commented 12 years ago

Ok, renamed to swapTexture. I'll let you change the other delete ... statements throughout GLOW. What is the issue with V8 and delete? I've not heard of that before.

subblue commented 12 years ago

Ahh, found something about 'delete' here: http://kendsnyder.com/posts/chrome-v8-creators-with-and-delete-are-dog-slow

empaempa commented 12 years ago

Yup, and there's a great Google IO on breaking the speed limits of JS. It's one of the V8-guys giving some insight to the workings of V8. Great talk, try googling it :)

subblue commented 12 years ago

Found it: http://www.youtube.com/watch?v=UJPdhx5zTaw Very interesting and impressive how good V8 is getting. Thanks for the tip!