Results 1 to 4 of 4

Thread: Maximum number of points allowed on drawArrays(POINTS)

  1. #1

    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?

    Thanks in advance for your help.

  2. #2

    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.

  3. #3
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Maximum number of points allowed on drawArrays(POINTS)

    I think there is a 65,536 limit someplace.

  4. #4

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •