Is TransparentSpriteColor() a fast command?

Everything else that doesn't fall into one of the other PB categories.
Lebostein
Addict
Addict
Posts: 833
Joined: Fri Jun 11, 2004 7:07 am

Is TransparentSpriteColor() a fast command?

Post by Lebostein »

Hi,

i have created for my game engine a dynamic sprite management. Before every "DisplaySprite(#sprite)" command I use the TransparentSpriteColor(#sprite, R, G, B) command. Is this command very fast or activate this command big processes?

Sorry for my english :oops:
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I don't think you should it that often.
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Well it greatly depends of the implementation. On Windows, it's very fast (just 2 variables to set), while on MacOS X it will be rather slow (need to modify all the pixels of the sprite). Why do you call this before each DisplaySprite() ? This information is stored on sprite basis.
Post Reply