Duplicate memory allocated by IndexedTriangleArray

Discussion in 'Java' started by Duncan, Jul 21, 2003.

  1. Duncan

    Duncan Guest

    I am currently creating a IndexedTriangleArray that references my
    arrays of coordinates, colors, normals, and their indices. While
    doing some profiling and memory debugging, I noticed that there are
    separate index arrays being allocated for the coordinates, colors, and
    normals, even though I specify IndexedQuadArray.USE_COORD_INDEX_ONLY,
    it still allocates arrays for the colors and normals.

    I was hoping someone knows of a way to be able to either prevent the
    IndexedTriangleArray from allocating the extra memory and use my
    reference to my one index array or even just allocate one extra array
    not all three.
    Duncan, Jul 21, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laura Heinzmann

    How to check memory size allocated to JVM?

    Laura Heinzmann, Feb 16, 2005, in forum: Java
    Replies:
    1
    Views:
    8,146
    John McGrath
    Feb 16, 2005
  2. Kjell Arne Johansen

    How do I know if memory is already allocated?

    Kjell Arne Johansen, Sep 1, 2003, in forum: C++
    Replies:
    8
    Views:
    374
    Kjell Arne Johansen
    Sep 2, 2003
  3. C++fan
    Replies:
    4
    Views:
    1,709
    Jack Klein
    Jan 7, 2004
  4. alan
    Replies:
    3
    Views:
    2,749
    Sharad Kala
    Feb 18, 2004
  5. Replies:
    5
    Views:
    608
    Matt Wharton
    Dec 9, 2004
Loading...

Share This Page