[SDL] fast image loading
Ulrich Eckhardt
doomster at knuut.de
Sun Jul 22 11:37:35 PDT 2007
On Sunday 22 July 2007 03:59:25 Jacek Poplawski wrote:
> Loading jpeg image by SDL_Image is very slow.
> Applications like gqview can display image much faster.
> I was browsing both SDL_Image and gqview code, then I tried to learn how to
> use raw jpeglib.
> I was able to disable "high quality" settings (which SDL_Image has
> hardcoded), but still speed was not good.
> Is there a way to load image in lower resolution, like most photo browsing
> applications do?
Some ideas:
- Preloading next and previous picture, so they are already present when
needed or other caching strategies.
- Generate thumbnails in advance.
- Load images in a background thread, so the application stays responsive and
delays don't hurt.
> Do you know any SDL-based library which can do it?
No.
Uli
More information about the SDL
mailing list