View Full Version : Maximum number of points allowed on drawArrays(POINTS)

01-13-2011, 08:33 PM
I have the following code snippet

gl.drawArrays(gl.POINTS, 0, count);
It displays correctly as expected when count is less than 60,000.
However, it displays nothing when the count = 70,000.

Is there any limit as how many points we can draw?
If so, how do I query the max limit?

Thanks in advance for your help.

01-14-2011, 09:13 AM
I have found a temporary work around this problem.

I have to draw 300,000 points. I just loop it with the following code snippets

var count = 60000;
for (var from=0; from<300000; from+=count)
gl.drawArrays(gl.POINTS, from, count);

Please let me know if there is a better way.

01-14-2011, 06:10 PM
I think there is a 65,536 limit someplace.

01-14-2011, 08:26 PM
Unfortunately, 65,536 doesn't work for me. But 60,000 works for me.

I am using the Chrome Canary build.