[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] SDL 1.3 adds support for render targets
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] SDL 1.3 adds support for render targets |
Date: |
Sun, 29 Jan 2012 16:19:15 +0100 |
On Sat, Jan 28, 2012 at 9:18 PM, Kai Sterker <address@hidden> wrote:
> As for the render target stuff, I've completed an experimental
> conversion of the sdl_surface class to use render targets and must say
> that I am a bit disappointed with the result. From my tests,
> performance is not better and sometimes worse than the current
> implementation and I don't see differences in memory footprint. I
> don't think I'll invest more time in that, but for the curious I have
> pushed my code into a new branch:
>
> https://github.com/ksterker/adonthell/tree/SDL2_RenderTargets
>
> Note that there is something wrong with surface creation.
Fixed some issues with the code, and performance is now closer to the
original implementation.
There's still a bug in surface_sdl::get_data and masked surfaces are
not yet handled properly.
And get_pix is missing a call to set_render_target(Surface);
Again, without any performance improvent, persuing this any further
appears to be a dead end. But I'll leave the branch around
nonetheless, just in case :-).
Kai