This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-11 18:47:33

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Ghost Effect 100 slows down project - could be optimised

Using Ghost Effect 100 on a sprite still has the same performance hit of setting it to 50, for example.

What alternative is there that will not reduce the speed of my game? (hide doesn't work with collisions)

Offline

 

#2 2010-02-11 18:58:24

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

I dunno.  sad


http://i.imgur.com/WBkM2QQ.png

Offline

 

#3 2010-02-11 19:07:04

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Any options for the moment?  hmm

If it comes down to it I'll have to export a masked image of the level for collisions. It would take up more disk space and time - but would work.

Offline

 

#4 2010-02-11 23:28:51

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

No options currently anyways all the graphic effects slows scratch down.
You can use Mathematics for faster effects

Last edited by fanofcena (2010-02-11 23:56:02)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#5 2010-02-12 03:30:46

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Hmmm... I think this belongs in Advanced Topics, RHY3756547.  smile

If the great Scratch master (that's you, of course) can't think of a solution, how could I?  tongue
I don't have a solution, sorry.  sad


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#6 2010-02-12 05:11:24

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Jonathanpb wrote:

Hmmm... I think this belongs in Advanced Topics, RHY3756547.  smile

If the great Scratch master (that's you, of course) can't think of a solution, how could I?  tongue
I don't have a solution, sorry.  sad

I think what RHY3756547 is saying is that it is a bug that it isn't faster.  It seems to make sense that it could be faster as the sprite doesn't actually have to be rendered - only the collision and color sensing still needs to be performed.   But I have no idea if that actually is how the code works.

Maybe this topic belongs in Suggestions since RHY3756547 may be recommending that such a mode be developed?

However, on second thought, let's try it in Advanced Topics as Jonathanpb suggests and see if anybody has any alternate techniques.  Maybe move it elsewhere later.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#7 2010-02-12 06:09:42

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Paddle2See wrote:

Jonathanpb wrote:

Hmmm... I think this belongs in Advanced Topics, RHY3756547.  smile

If the great Scratch master (that's you, of course) can't think of a solution, how could I?  tongue
I don't have a solution, sorry.  sad

I think what RHY3756547 is saying is that it is a bug that it isn't faster.  It seems to make sense that it could be faster as the sprite doesn't actually have to be rendered - only the collision and color sensing still needs to be performed.   But I have no idea if that actually is how the code works.

Maybe this topic belongs in Suggestions since RHY3756547 may be recommending that such a mode be developed?

However, on second thought, let's try it in Advanced Topics as Jonathanpb suggests and see if anybody has any alternate techniques.  Maybe move it elsewhere later.

I got it by Paddle2see's post RHY as scratch is fast enough at presentation mode instead of using ghost 100% you can use show hide blocks
like
|forever
|||show
|||hide

Belive me its faster then Ghost and for very simple objects Mathematics is the best solution  smile  .


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#8 2010-02-12 08:15:12

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Would setting it to 99 help?
It probably wouldn't.

For some reason archmage only sets ghost effect to 99...


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#9 2010-02-12 09:08:37

08jackt
Scratcher
Registered: 2007-09-12
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

What you could do, is make a a 2nd costume that's just a little black dot.

Though, it might be a bit of a pain, if your using a set of variables already to set the sprites costume to a certain amount...

hmmm....


http://i39.tinypic.com/jgtswi.png

Offline

 

#10 2010-02-12 09:13:55

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

08jackt wrote:

What you could do, is make a a 2nd costume that's just a little black dot.

Though, it might be a bit of a pain, if your using a set of variables already to set the sprites costume to a certain amount...

hmmm....

But then what about color detection and collision detection?


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#11 2010-02-12 10:53:57

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

fanofcena wrote:

Paddle2See wrote:

Jonathanpb wrote:

Hmmm... I think this belongs in Advanced Topics, RHY3756547.  smile

If the great Scratch master (that's you, of course) can't think of a solution, how could I?  tongue
I don't have a solution, sorry.  sad

I think what RHY3756547 is saying is that it is a bug that it isn't faster.  It seems to make sense that it could be faster as the sprite doesn't actually have to be rendered - only the collision and color sensing still needs to be performed.   But I have no idea if that actually is how the code works.

Maybe this topic belongs in Suggestions since RHY3756547 may be recommending that such a mode be developed?

However, on second thought, let's try it in Advanced Topics as Jonathanpb suggests and see if anybody has any alternate techniques.  Maybe move it elsewhere later.

I got it by Paddle2see's post RHY as scratch is fast enough at presentation mode instead of using ghost 100% you can use show hide blocks
like
|forever
|||show
|||hide

Belive me its faster then Ghost and for very simple objects Mathematics is the best solution  smile  .

That gets me a 1 frame delay. I don't want that.

Offline

 

#12 2010-02-12 10:57:22

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

RHY3756547 wrote:

fanofcena wrote:

Paddle2See wrote:


I think what RHY3756547 is saying is that it is a bug that it isn't faster.  It seems to make sense that it could be faster as the sprite doesn't actually have to be rendered - only the collision and color sensing still needs to be performed.   But I have no idea if that actually is how the code works.

Maybe this topic belongs in Suggestions since RHY3756547 may be recommending that such a mode be developed?

However, on second thought, let's try it in Advanced Topics as Jonathanpb suggests and see if anybody has any alternate techniques.  Maybe move it elsewhere later.

I got it by Paddle2see's post RHY as scratch is fast enough at presentation mode instead of using ghost 100% you can use show hide blocks
like
|forever
|||show
|||hide

Belive me its faster then Ghost and for very simple objects Mathematics is the best solution  smile  .

That gets me a 1 frame delay. I don't want that.

1 frame? Really?


Scratchin' since 2007

Offline

 

#13 2010-02-12 11:00:00

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

adriangl wrote:

RHY3756547 wrote:

fanofcena wrote:


I got it by Paddle2see's post RHY as scratch is fast enough at presentation mode instead of using ghost 100% you can use show hide blocks
like
|forever
|||show
|||hide

Belive me its faster then Ghost and for very simple objects Mathematics is the best solution  smile  .

That gets me a 1 frame delay. I don't want that.

1 frame? Really?

Yes. Didn't I just say that?

When I have things colide I don't want the user to see it stuck half way in it. If you do, that's fine by me.

Offline

 

#14 2010-02-12 15:16:35

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

adriangl wrote:

RHY3756547 wrote:

fanofcena wrote:


I got it by Paddle2see's post RHY as scratch is fast enough at presentation mode instead of using ghost 100% you can use show hide blocks
like
|forever
|||show
|||hide

Belive me its faster then Ghost and for very simple objects Mathematics is the best solution  smile  .

That gets me a 1 frame delay. I don't want that.

1 frame? Really?

Yup. RHY spazzes out over every frame he loses in a scratch project.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#15 2010-02-12 17:08:49

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Lucario621 wrote:

adriangl wrote:

RHY3756547 wrote:


That gets me a 1 frame delay. I don't want that.

1 frame? Really?

Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

Offline

 

#16 2010-02-12 17:37:31

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

RHY3756547 wrote:

Lucario621 wrote:

adriangl wrote:


1 frame? Really?

Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

Please be nice, RHY3756547.

Thanks, and Scratch on.

(OT: Did I sound a bit moderatorish?)

Offline

 

#17 2010-02-12 17:43:55

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Paddle2See wrote:

Jonathanpb wrote:

Hmmm... I think this belongs in Advanced Topics, RHY3756547.  smile

If the great Scratch master (that's you, of course) can't think of a solution, how could I?  tongue
I don't have a solution, sorry.  sad

I think what RHY3756547 is saying is that it is a bug that it isn't faster.  It seems to make sense that it could be faster as the sprite doesn't actually have to be rendered - only the collision and color sensing still needs to be performed.   But I have no idea if that actually is how the code works.

Maybe this topic belongs in Suggestions since RHY3756547 may be recommending that such a mode be developed?

However, on second thought, let's try it in Advanced Topics as Jonathanpb suggests and see if anybody has any alternate techniques.  Maybe move it elsewhere later.

WOW. Paddle2See called Rhy3756547 by his real name.  yikes

RHY3756547 wrote:

Lucario621 wrote:

adriangl wrote:


1 frame? Really?

Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

I think you just hurt Lucario621's feelings, considering he pretty much loves you.


Hai.

Offline

 

#18 2010-02-12 17:45:15

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

rdococ wrote:

RHY3756547 wrote:

Lucario621 wrote:


Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

Please be nice, RHY3756547.

Thanks, and Scratch on.

(OT: Did I sound a bit moderatorish?)

...

Offline

 

#19 2010-02-12 18:23:02

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

RHY3756547 wrote:

Lucario621 wrote:

adriangl wrote:


1 frame? Really?

Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

*deeply offended*

jk  tongue


http://i.imgur.com/WBkM2QQ.png

Offline

 

#20 2010-02-12 18:39:24

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Lucario621 wrote:

RHY3756547 wrote:

Lucario621 wrote:


Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

*deeply offended*

jk  tongue

You are actually crying in a corner right now.  tongue

Why are you deeply offended about losing one frame on everything but walls, anyway?

Offline

 

#21 2010-02-12 18:41:47

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

RHY3756547 wrote:

Lucario621 wrote:

RHY3756547 wrote:

Lucario621 wrote:

Yup. RHY spazzes out over every frame he loses in a scratch project.

I really hate you.

I've decided to lose the one frame on everything but the wall collision sprites.

*deeply offended*

jk  tongue

You are actually crying in a corner right now.  tongue

Why are you deeply offended about losing one frame on everything but walls, anyway?

I'm not offended about that. I was (jokingly) offended about how you said "I hate you"  tongue


http://i.imgur.com/WBkM2QQ.png

Offline

 

#22 2010-02-12 18:53:45

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Anyways - no effective alternative techniques. This should be moved to suggestions now.  smile

Last edited by RHY3756547 (2010-02-12 18:53:52)

Offline

 

#23 2010-02-12 19:08:05

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Ghost Effect 100 slows down project - could be optimised

If you only  need to test whether it is touching periodically, you can make a broadcast every time you need to, and have that show it, test whether it is touching, and then hide. If, however, you need to have a constant feedback, then ghost=100 is the best option.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#24 2010-02-12 20:12:53

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

billyedward wrote:

If you only  need to test whether it is touching periodically, you can make a broadcast every time you need to, and have that show it, test whether it is touching, and then hide. If, however, you need to have a constant feedback, then ghost=100 is the best option.

I only use bbroadcasts for changes in game states - otherwise I use variables. It keeps the script level down and the fps up.

Offline

 

#25 2010-02-12 20:19:54

Mr_X
Scratcher
Registered: 2009-09-10
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

All of that aside, what exactly does ghost effect do?
And if anyone wants to tell me what the motor functions in the stage are for then go ahead.


http://img99.imageshack.us/img99/8656/exveemonc.gif The rules of the internet:
1) Every woman is a man    2) Every man is a child    3) Every child is an FBI agent                                        I have psychopathic tendencies. Be afraid

Offline

 

Board footer