script using parameters doesn't render after some time
-
Hello, Happy new year to all JSCAD team and users.
I'm using a script with parameters and after some runs it doesn't render when I click on "Update". The overall reactions of the webpage is also very slow, it takes about 20 seconds before it says "processing". I'm currently testing my script with specific values, so I cannot change parameters values to make the rendering possible. There is maybe memory loss, as I'm using arrays, and globals (declaration outside of main), if needed I can change that, adding parameters to my functions instead of relying on globals. On my parameters definition function I'm using "initial and defaults to the same value".
Is it possible to have a script with parameters not rendering a first time before parameters are set ?Does someone has some tips, good practices that I could use ?
-
@z3dev Yes, add Memory would be great, I felt the difference when I changed from 4 Gb to 8. For the moment I'm simply starting to use my laptop as main computer.
-
@gilboonet thanks for the information.
These days, operating systems are large, and applications are bloated. The only solution is more memory, which is really cheap. It may take a while to find the correct dim cards but 16 or 32 gigs will improve performance hugely.
-
I'm used to work on my desktop PC and it's a quite old system with an Athlon 64 5200 x2 with 8 Gb RAM and a Radeon H7770 with 1 Gb VRAM, and I think that now for such intensive scripts I will rather use my laptop which is more recent, with a AMD Ryzen 3 3200 with 8 Gb and a Radeon Vega 3 with 2 Gb. The scripts on the laptop only takes a few seconds when its takes almost 1 min. with the desktop, it's more a PC performance than a jscad problem.