Acc. problems when using GIFs

Hi!

After having gotten heaps of help (THANX!) on the thread about FullScreen crashes, I now have managed to make my 2D gameengine work great … but … :wink:

I have some sprites that I would like to paint and I would like them to be transparent. My windowed 150 fps won’t agree though since it makes a deep dive down to 5 fps when I use more than 5 (depends on) gif-sprites…

I bugtested my gameengine like curse and the logic works great when I just disables the actual g.drawImage call in my sprites. Thus, it is a pure drawing issue and I can’t understand what it is.

A gif is a gif, right?

/Markus

What method did u use to load the gif?
(ImageIO doesn’t return managed images)

Are you doing any anti-aliasing/alphacompositing or any other operation that requires the destination pixels color value? (read back from vram is incredibly slow)

Even if u were doing 1 of the above, I wouldn’t expect a drop from 150 to 5, unless the machine you are using has a speedy gfx card, and poopy cpu.

My bad… sorry

It had nothing to do with gifs or not gifs - I had to make use of VolatileImages instead…

Problem solved (partially :slight_smile: )

/Markus