Discuss Scratch

TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

I have a project where I define an object's movement every 1/14 of the way (it's very irregular) and another where I define a slower object every 1/2 of the way (it's very regular).
The faster object (the 1/14 irregular) should complete 4.15 paths before the slower object completes one path.
Instead, due to lag, the faster object is slower and only completes about 3 paths before the slower object completes one path. I wanted it to be prefect, and now it's imperfect due to lag. Scratch has too much of it.


TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

(P.S.: I haven't shared the project)


TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

Update: I've timed the motion of the faster object. It's going about 1.5 times slower than I need it to due to lag, which is pretty severe in this case.


drmcw
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

TheHockeyist wrote:

(P.S.: I haven't shared the project)
Why not? No-one can see anything otherwise.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

drmcw wrote:

TheHockeyist wrote:

(P.S.: I haven't shared the project)
Why not? No-one can see anything otherwise.
I've shared it now. It wasn't shared at the time. It's my latest project. Observe how much lag Mercury has relative to Earth (should go 4.15 times for every 1 of Earth).


drmcw
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

Well reasonable timings to a tenth of a second is ok a hundredth is unreasonable but you have timing to 9 decimal places!

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

drmcw wrote:

Well reasonable timings to a tenth of a second is ok a hundredth is unreasonable but you have timing to 9 decimal places!
AAAP. As Accurate As Possible.


drmcw
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

For mercury try using a loop of go to x y and play note until done. That would have a better chance of working more accurately.
e.g
forever   
go to x: () y: ()
play note ( v) for (0.5) beats
...
end

Last edited by drmcw (June 17, 2014 18:12:58)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

drmcw wrote:

For mercury try using a loop of go to x y and play note until done. That would have a better chance of working more accurately.
e.g
forever   
go to x: () y: ()
play note ( v) for (0.5) beats
...
end
I tried that on my unshared copy. Still laggy.


drmcw
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

Could you reduce the note lengths to get better timing for mercury?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

drmcw wrote:

Could you reduce the note lengths to get better timing for mercury?
Perhaps… I may end up just recording each planet at a time and then reconstructing it together to make it sound professional.


drmcw
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

It might be worth looking at this project http://scratch.mit.edu/projects/10490996/ to see how you can use the timer to trigger notes at the right time?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

drmcw wrote:

It might be worth looking at this project http://scratch.mit.edu/projects/10490996/ to see how you can use the timer to trigger notes at the right time?
Since my song repeats itself over and over until infinity, I think I'd be forced to use a mod block or something… and the mod number is different for each planet…


drmcw
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

forever

repeat (length of [list v])

end
end

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
TheHockeyist
Scratcher
1000+ posts

Scratch has too much lag and it's making my project glitch.

drmcw wrote:

forever

repeat (length of [list v])

end
end
I've ended up doing a recording last night (which took FOREVER to upload due to internet problems), but thanks for your help, though.


Powered by DjangoBB