When trying to simulate a historic computer, I snapped together some 150 instructions in one script, and was surprised that there moved very slow and were difficult to handle. They performed without problems then, but I'd like to understand why do they get so slow?
Most of them were send and assign blocks.
Offline
Because of the way scratch blocks work, the script you're attaching to is re-drawn every time it changes. Scratch blocks are vector graphics (if I remember correctly), so drawing them over and over takes a while...
Offline
Makes sense! I would expect a linear growth of machine time though, but it feels like exponential growth or limited capacity.
Offline
Samueldora wrote:
Makes sense! I would expect a linear growth of machine time though, but it feels like exponential growth or limited capacity.
They are! It's like 0.1 lagging or such for each block. From what I've seen, the inclusion of 10-20 blocks already slows you down a bit. Have you tried splitting the scripts up?
Offline
Thank you for the information and the hint. Yes, I already thought about splitting up, and I will do so, though is a step away from the original (meters of punched tape). On the other hand, it pays off in readability.
Offline
Greatdane wrote:
Samueldora wrote:
Makes sense! I would expect a linear growth of machine time though, but it feels like exponential growth or limited capacity.
They are! It's like 0.1 lagging or such for each block. From what I've seen, the inclusion of 10-20 blocks already slows you down a bit. Have you tried splitting the scripts up?
Splitting the scripts up will just slow down the actual project...
Offline
juststickman wrote:
Greatdane wrote:
Samueldora wrote:
Makes sense! I would expect a linear growth of machine time though, but it feels like exponential growth or limited capacity.
They are! It's like 0.1 lagging or such for each block. From what I've seen, the inclusion of 10-20 blocks already slows you down a bit. Have you tried splitting the scripts up?
Splitting the scripts up will just slow down the actual project...
Soo, slow script drawing, or slow project running?
Offline
meew0 wrote:
I suggest getting a faster computer.
Alright, so let's spend another 1,000 dollars to solve the problem when we can solve it in 3 minutes for free.
Offline
Greatdane wrote:
meew0 wrote:
I suggest getting a faster computer.
Alright, so let's spend another 1,000 dollars to solve the problem when we can solve it in 3 minutes for free.
![]()
Lol.
Offline