From: Lothar Scholz Date: 2005-07-13T18:17:41+09:00 Subject: Re: Updating GUIs Hello Joe, JVD> But in each polygon array, there's 30 arrays that contain the x/y JVD> points of the polygon. So I'm creating 40 points per polygon times JVD> 500 players = 2000 created arrays on each update. Probably not the JVD> most efficient thing to do. Correct this is an important thing that could be reduced to 0. You can simply assign a new value to an array with RARRAY(points)->ptr[i] = rb_float_new(c_x + (x * c_rad - y * s_rad)); in the same way as you iterate over the array. -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's