question: public void addToRenderQueue ( VisualItem item ) { if ( ritems . length == rsize ) { int capacity = ( 3 * ritems . length ) / 2 + 1 ; VisualItem [ ] q = new VisualItem [ capacity ] ; int [ ] s = new int [ capacity ] ; System . arraycopy ( ritems , 0 , q , 0 , rsize ) ; System . arraycopy ( rscores , 0 , s , 0 , rsize ) ; ritems = q ; rscores = s ; } ritems [ rsize ] = item ; rscores [ rsize ++ ] = ( sort != null ? sort . score ( item ) : 0 ) ; }
target:  Add an item to the rendering queue.