I was writing a script to make a line with each segment shorter then the previous one. After I created the channel (with bad default values), all channel turned RED and my computer started to lag a lot! I managed to switch to Manual but it did not solve the probleme. I ended up removing the " ; " at the end of a line and once I did Ctrl+Enter, it fixed my probleme.
This is the first time I see this since I started learning VEX.
My script in a Wrangle (Detail). Any time the "divider" is less then 2, I get the red channels+lag:
float curheight = 1; float divider = chf("divider"); int totalSections = chi("total_sections"); int npt = addpoint(0, set(0,curheight,0)); int nprim = addprim(0, "polyline"); addvertex(0, nprim, npt); for(int i=0; i<totalSections; i++) { curheight /= divider; npt = addpoint(0, set(0,curheight,0)); addvertex(0, nprim, npt); }
-Olivier
