What causes RED channels in a wrangle huge computer lag!{[SOLVED]}

   481   1   0
User Avatar
Member
1226 posts
Joined: April 2017
Offline
I'm not trying to solve the problem, just curious to know what causes this.

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
Edited by olivierth - Nov. 26, 2025 09:18:13

Attachments:
Houdini_Wrangle_Red_Screen_01.jpg (76.3 KB)

User Avatar
Member
1226 posts
Joined: April 2017
Offline
AHHHHHH!!!! Found the problem! When I first created the "divider" channel, it was an integer (mistake). I re-wrote it as a chf("divider") but forgot to remove and re-create the spare parameter. On top of that, I had locked the parameter to never go below 1.1.

...now that I re-created the spare parameter as a float, all is good.
  • Quick Links