http://scratch.mit.edu/projects/archmage/358968
This is the project I want to run faster. Only essential scripts are running and I want to know if there is a way to reduce lag without changing the way the project preforms.
Any help is appreciated
Offline
Nick60 wrote:
Cut on the graphic effects set by the project. Also, lets say you had a sprite that was set on 'Forever' while changing colors/sprite. Try and make it only change when you see it.
There are no graphical effects, just costume changes. Perhaps you can remix it to show how to increase it's speed?
I think I may be able to make it faster by fixing some redundancy that I over looked. It runs fantastically offline though.
Offline
Ok, I have pinpointed the source of the lag.
http://scratch.mit.edu/projects/archtest/369328
On this project, the character variable is set to 0. If you click one of the character buttons you can set it to a number and you can see the effect it has on lag.
I think that there are several thing that could cause the lag.
1. Too many if statements slow things down
2. Repeat loops are slowing things down
3. Repetitive calls the the animationDelay variable is slowing down the project.
Number 3 is the easiest to deal with so I will try to take out the variables and just put number in the wait blocks.
Last edited by archmage (2009-01-02 15:16:50)
Offline
Too bad you can't create switch statements in Scratch.
Anyways, 1 shouldn't be much of a problem but 2 and 3 will.
EDIT: http://scratch.mit.edu/projects/Nick60/368572 (Know a way to fix the lag issues here. I currently working on another version that will fix all Bomb related issues and guns. But I'm afraid with the new update comes a lot more lag)
Ok, I have pinpointed the source of the lag.
http://scratch.mit.edu/projects/archtest/369328
That project isn't laggy at all. Perhaps all the walking and fighting animations are the main problem.
Last edited by Nick60 (2009-01-02 15:21:59)
Offline
Nick60 wrote:
That project isn't laggy at all. Perhaps all the walking and fighting animations are the main problem.
Yeah, thats what I was trying to get at. I should have made myself more clear.
Offline
Ok, number 3 doesn't cause problems.
http://scratch.mit.edu/projects/archtest/369328
This project fixes in issue only in the Mario animations. I could not see a noticeable diffrence between animations that used the animationDelay variable and the Mario animations which did not use the animationDelay variable.
Again, help would be appreciated.
Offline
Ok, I have 1 idea (though I don't know if it will completely help), you know how when mario's standing he doesn't do any animations? Well you have those animation frames, and you should get rid of them. It should take away about 50 costumes, (out of 860 lol)
Last edited by Lucario621 (2009-01-02 18:41:50)
Offline
Lucario621 wrote:
Ok, I have 1 idea (though I don't know if it will completely help), you know how when mario's standing he doesn't do any animations? Well you have those animation frames, and you should get rid of them.
Ok, the amount of costumes doesn't impact lag. I have confirmed this. The animation scripts are causing the lag. I am very sure of this.
Offline
archmage wrote:
Lucario621 wrote:
Ok, I have 1 idea (though I don't know if it will completely help), you know how when mario's standing he doesn't do any animations? Well you have those animation frames, and you should get rid of them.
Ok, the amount of costumes doesn't impact lag. I have confirmed this. The animation scripts are causing the lag. I am very sure of this.
So your saying, "The animation scripts are causing the lag. I am very sure of this." so the official problem is, how to fix it lol?
Offline
Lucario621 wrote:
archmage wrote:
Lucario621 wrote:
Ok, I have 1 idea (though I don't know if it will completely help), you know how when mario's standing he doesn't do any animations? Well you have those animation frames, and you should get rid of them.
Ok, the amount of costumes doesn't impact lag. I have confirmed this. The animation scripts are causing the lag. I am very sure of this.
So your saying, "The animation scripts are causing the lag. I am very sure of this." so the official problem is, how to fix it lol?
That is correct.
Offline
Ok, so I (sadly) perhaps don't know how to fix this problem on the character sprite, though I can definately make this project to have 6 less sprites:
-Only 1 character button
-Depending on the mouse x and y position it will brodcast the correct message.
Offline
P.S. When will you add the character "archmage"? I swear I'll play on that character till I've broken my videogame hands XD
Offline
Lucario621 wrote:
Ok, so I (sadly) perhaps don't know how to fix this problem on the character sprite, though I can definately make this project to have 6 less sprites:
-Only 1 character button
-Depending on the mouse x and y position it will brodcast the correct message.
That is definitely not necessary. I prefer to have actual buttons.
Offline
Ok, I have one (miniscule) idea, maybe you could get rid of the "if stance = 4" scripts, because their useless.
Offline
Lucario621 wrote:
P.S. When will you add the character "archmage"? I swear I'll play on that character till I've broken my videogame hands XD
I am working on it right now.
This is an archive of all the archmage sprites so far.
http://rapidshare.com/files/179195531/amage_sprites.rar.html
Offline
Lucario621 wrote:
Ok, I have one (miniscule) idea, maybe you could get rid of the "if stance = 4" scripts, because their useless.
Yeah I know. Scratch couldn't handle all the frames in the double jump without lag.
Offline
archmage wrote:
Lucario621 wrote:
P.S. When will you add the character "archmage"? I swear I'll play on that character till I've broken my videogame hands XD
I am working on it right now.
This is an archive of all the archmage sprites so far.
http://rapidshare.com/files/179195531/amage_sprites.rar.html
...these days I have no idea where you find such wierd and unknown websites.
[edit]for some reason I can only save it cuz its a .rar and I have no idea what da heck that is.
Last edited by Lucario621 (2009-01-02 19:18:30)
Offline
Lucario621 wrote:
archmage wrote:
Lucario621 wrote:
P.S. When will you add the character "archmage"? I swear I'll play on that character till I've broken my videogame hands XD
I am working on it right now.
This is an archive of all the archmage sprites so far.
http://rapidshare.com/files/179195531/amage_sprites.rar.html...these days I have no idea where you find such wierd and unknown websites.
Weird and unknown? You have never heard of rapidshare? It is just a file hosting website.
PS: Everyone knows about rapidshare.com
Last edited by archmage (2009-01-02 19:18:01)
Offline
archmage wrote:
Lucario621 wrote:
archmage wrote:
I am working on it right now.
This is an archive of all the archmage sprites so far.
http://rapidshare.com/files/179195531/amage_sprites.rar.html...these days I have no idea where you find such wierd and unknown websites.
Weird and unknown? You have never heard of rapidshare? It is just a file hosting website.
PS: Everyone knows about rapidshare.com
uhh...*
anyway I can't open it cuz its an .rar, whats that?
Last edited by Lucario621 (2009-01-02 19:19:59)
Offline
It is in a .rar archive
http://www.rarlab.com/
Get winrar.
Offline
...nvm why did I even ask if I'm just going to get a * program that I'll rarely use...
Offline
It doesnt matter too much. It will be done by the end of today.
Offline