Thanks guys. SDL_gfx is still maintained. I think Andreas hasn’t had the time to update it lately. He’s maintained it for a lot of years, though. As for speed tests, I’ve modified SGE’s test program and have done my own tests against SDL_gfx. The results are not surprising. They render at the same speed, within a margin of error. The arc functions I wrote are a lot faster than the ones currently in SDL_gfx, but that’s a minor fact. I sent Andreas the code for that and you can find it in the pending patches for SDL_gfx.
I’ve been meaning to post the speed test program. Should I also put up the comparison program?
The current version of SPG_Blit does add its dirty rect to the front table. The prerelease version might not have… Maybe that’s it. SPG_Blit is very slow, though, so it would indeed be best to wrap SDL_BlitSurface:
// Excuse the lack of indentation
int Blit(SDL_Surface* src, SDL_Rect* srect, SDL_Surface* dest, SDL_Rect* drect)
int result = SDL_BlitSurface(src, srect, dest, drect);
if(drect != NULL && SPG_DirtyEnabled())
Jonny DDate: Mon, 10 Nov 2008 15:29:38 +0000
To: sdl at lists.libsdl.org
Subject: Re: [SDL] ANNC: Sprig v1.0.0
On Mon, Nov 10, 2008 at 1:31 PM, Andre Botelho wrote:
Date: Sun, 9 Nov 2008 09:54:39 -0500
From: email@example.com (Jonathan Dearborn)
Subject: [SDL] ANNC: Sprig v1.0.0
Content-Type: text/plain; charset=“iso-8859-1”
The full release of Sprig v1.0.0 is out now. Important changes from the prerelease version include palette creation, bugfixes, and several important API changes.
If you have the chance, I’d love to hear what you think.
A little feedback^^
I?ve not tested the released o the prereleased yet 'cause i’m with no time but I intend to add it to my project^^.
it is a really good work and with your support it’s a lot better than SDL_gfx that is unsupported : (.
I’m interested on the dirt rect system but SPG_Blit appear do not create a dirt rect to the array.
It would be good to substitute SDL_BlitSurface with a function that take care of adding a rect of the rects creation, or it’s not the best way to do it?( maybe adding manually can be better).
Anyway. Thanks to the release and keep the good work^^!
any speed tests for this against sdlgfx?
is sdlgfx even still maintained?
Stay up to date on your PC, the Web, and your mobile phone with Windows Live