Speeding up drawing

Advanced game related topics
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Speeding up drawing

Post by Moonshine »

In the help file, commands such as DisplayAlphaSprite(), DisplaySolidSprite(), DisplayShadowSprite(), DisplayRGBFilter() and DisplayTranslucideSprite() are all slow unless StartSpecialFX() and StopSpecialFX() are used. I was wondering if there was any way to speed up these drawing methods (alpha sprites mainly) without having to use the Start and StopSpecialFX() commands. Im trying to make a 2d engine that runs as fast as it can, any tips are welcome

Cheers :)
Mark my words, when you least expect it, your uppance will come...
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

Why don't you want to use FX() commands,

The only way I can see is that you wrote your own library in c or asm
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

I remeber reading somewhere on these forums that there was a performance hit when using the start and stopspecialfx commands. Im still getting used to PB, maybe I was mistaken. So is there a performance hit when using the specialfx commands?
Mark my words, when you least expect it, your uppance will come...
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

why not use Sprite3D functions ?
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

DirectDraw is more suited to what Im trying to achieve. On that note does anybody know how to load an image as a sprite with an alphachannel, without having to have 2 sprites? ( i.e. a normal sprite and an alpha sprite.)
Mark my words, when you least expect it, your uppance will come...
Post Reply