Skip to content

Tag: javascript

WebGL render loop performance

I’ve just started learning WebGL. I am rendering multiple spheres but I’m not sure about the “bindBuffer” and “bufferData” calls inside the render loops. I can render a single sphere with 2 million vertices no problem. But once I try to render 3 spheres with 100k vertices e…

How to list array inside a javascript alert

I have an array of strings, I want to display the content with some html tags in the alert level. I tried this: but the problem here, I got only the first line with *. how can I resolvr this probleme to show all the lements with * in the begining ? Answer Using .concat() and .trim():