Hi!
If you have seen my Pattern Renderer, you may know that the rendering is quite slow.
I am planning on making that dynamic, and using your mouse as an input.
BUT I have a problem...
I cannot repeat a script 172800 times without using a repeat block! The rendering must be instant, like in my Infinite Scrolling Random Cave Generator.
I've already tried the whole broadcast thing, but as you can see, that didn't work.
Anybody got a nice way to do this?
Last edited by SciTecCf (2012-06-30 13:14:37)
Offline
zammer990 wrote:
There isn't really a way to make it go faster other than turbo mode , at least not without lowering the quality
It becomes instant when you use
go to x: (-240) y: (180) forever stamp change x by (1) stamp change x by (1) stamp change x by (1) stamp change x by (1) stamp change x by (1) stamp change x by (1) ... stamp change y by (-1) set x to (-240) stamp change x by (1) ... endbecause it only updates at the end of the loop. BUT I do not want 172800+ blocks stacked up because it will crash me.
Offline
What you have is this
repeat (172800) do stuff endThis will make it faster
repeat (86400) do stuff do stuff endThis will make it even faster.
repeat (10800) do stuff //this "do stuff" is here 16 times do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff end
Offline
Wes64 wrote:
What you have is this
repeat (172800) do stuff endThis will make it fasterrepeat (86400) do stuff do stuff endThis will make it even faster.repeat (10800) do stuff //this "do stuff" is here 16 times do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff end
Wes, that is not what I have.
I know what you mean, but I don't want to stack 172800 stuff on top of each other. I want a more efficient solution to instant rendering. Check out the project I linked to in the first post.
Offline
SciTecCf wrote:
Wes64 wrote:
What you have is this
repeat (172800) do stuff endThis will make it fasterrepeat (86400) do stuff do stuff endThis will make it even faster.repeat (10800) do stuff //this "do stuff" is here 16 times do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff endWes, that is not what I have.
I know what you mean, but I don't want to stack 172800 stuff on top of each other. I want a more efficient solution to instant rendering. Check out the project I linked to in the first post.
There is no instant rendering, there is just fast rendering and faster rendering. There really isn't a feasible way to render so many things instantly.
Offline
Wes64 wrote:
SciTecCf wrote:
Wes64 wrote:
What you have is this
repeat (172800) do stuff endThis will make it fasterrepeat (86400) do stuff do stuff endThis will make it even faster.repeat (10800) do stuff //this "do stuff" is here 16 times do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff do stuff endWes, that is not what I have.
I know what you mean, but I don't want to stack 172800 stuff on top of each other. I want a more efficient solution to instant rendering. Check out the project I linked to in the first post.There is no instant rendering, there is just fast rendering and faster rendering. There really isn't a feasible way to render so many things instantly.
So there aren't any workarounds?
I know instant rendering is possible, but on this scale? You need a workaround.
Offline
Im not familiar with any workarounds, except this.
You have one sprite that renders the whole screen all by itself. But if you had many sprites work together to render the screen, its faster because they are paralell processing.
Example.
Offline
^ What he said, and no, there isn't just a work around, even doing it with thousands of duplicated code would take a small amount of time, due to the computer's processing and squeak's processing. Using maybe 36 sprites with each repeating 48 times 100 stacked blocks of code would do it quickly
Offline
zammer990 wrote:
^ What he said, and no, there isn't just a work around, even doing it with thousands of duplicated code would take a small amount of time, due to the computer's processing and squeak's processing. Using maybe 36 sprites with each repeating 48 times 100 stacked blocks of code would do it quickly
Okay, I'll try the multiple sprite thing, thanks for your help!
Offline