# Maximum number of points allowed on drawArrays(POINTS)

• 01-13-2011, 08:33 PM
pion
Maximum number of points allowed on drawArrays(POINTS)
I have the following code snippet
Code :

`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?

• 01-14-2011, 09:13 AM
pion
Re: Maximum number of points allowed on drawArrays(POINTS)
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
Code :

```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
SteveBaker
Re: Maximum number of points allowed on drawArrays(POINTS)
I think there is a 65,536 limit someplace.
• 01-14-2011, 08:26 PM
pion
Re: Maximum number of points allowed on drawArrays(POINTS)
Unfortunately, 65,536 doesn't work for me. But 60,000 works for me.

I am using the Chrome Canary build.

Thanks.