I just imported a Delphi project into Lazarus that does a lot of image loading and display. The project compiled in Lazarus is very noticeably slower than when compiled in Delphi where image loading is concerned.
So I'm wondering what my options are. First of all I'm using TPicture.LoadFromFile to do the image loading. If for some reason that's no longer the way I should be doing it in Lazarus I can change it.
I saw the list of Graphics libraries at
http://wiki.lazarus.freepascal.org/Graphics_libraries, but I'm not sure if that's the direction I need to go or not. If so, I'd like to get some suggestions on which might be the best for my needs. I'm not doing any fancy alterations or manipulations on the images. I just need to load and display them quickly. I do need to be able to resize them though, that's the one caveat I suppose.
Ideally I'd like to get the TPicture.LoadFromFile working faster rather than having to write a bunch of code to load each specific file type that might come up.
Oh I should mention I've only tested JPEG images so far. I suppose I should check some PNGs to see if the problem is JPEG specific. Either way, I'll need to make some changes or the project won't work in Lazarus.