Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: mode7 on Sun 07/11/2010 10:58:06

Title: Performance Problems Particles vs Alpha Blending
Post by: mode7 on Sun 07/11/2010 10:58:06
Hi there,

I'm having some serious issues with my game (800x600, 32bit color)
I'm running the fog module and I'm drawing some particles on the Background with Particle Systems manager.

My Problem is that with both enabled the game goes completey slow:

With DirectDraw I can't daw the fog elements without going down to 20 frames.
With D3D I can't draw the particles (even if its only very few) without going down to 13 frames.

So my question would be - is there any kind of workaroound for this? Maybe a different way to draw particles (with alpha) or do I have to accept this engine restrictions?
Title: Re: Performance Problems Particles vs Alpha Blending
Post by: Calin Leafshade on Sun 07/11/2010 19:22:10
AGS is not particularly good at drawing sprites (or rather the underlying technology isnt)

If something is very intensive then you might consider pre-rendering it.
Title: Re: Performance Problems Particles vs Alpha Blending
Post by: mode7 on Sun 07/11/2010 19:33:32
I hadn't thought of that - anyway - i dropped the resolution to 320 and I'm getting constant framerates so this is kind of solved
Title: Re: Performance Problems Particles vs Alpha Blending
Post by: Pumaman on Sun 21/11/2010 22:14:05
What is the "Particle Systems manager" that you're using? I'm not sure what that might do to render the particles.
Title: Re: Performance Problems Particles vs Alpha Blending
Post by: Dualnames on Mon 22/11/2010 15:44:52
Quote from: Pumaman on Sun 21/11/2010 22:14:05
What is the "Particle Systems manager" that you're using? I'm not sure what that might do to render the particles.

It's a module.

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36706.0

I'm not sure if the download link works anymore, but I always keep a copy so if you need one, let me know.