On Thu, 25 Aug 2005 11:16:14 +0200
Ger Remmers <[EMAIL PROTECTED]> wrote:

>[...]
> > > Secondly, loading an image larger then ~3000x2000 takes ages. Loading
> > > an image  larger then 5000X5000 doesn't happen at all. ( I Left it to
> > > load over night  and it still hadn't loaded in the morning)
> >
> > I optimized a few things. Now it loads at nearly harddisk speed.
> 
> I left the test app to load the images and this is what happened
> 
> [EMAIL PROTECTED]:~/projecten/designer> ./project1
> 
> Filename : /home/laz/projecten/designer/DK440-047.png
> File size : 1.768.448
> Start loading at : 12:55:10
> Finished loading at : 12:55:17
> 
> Filename : /home/laz/projecten/designer/DK440-(4950x3300).png
> File size : 11.523.031
> Start loading at : 12:55:45
> Finished loading at : 12:59:12
> 
> Filename : /home/laz/projecten/designer/No-Parts.bmp
> File size : 167.836.678
> Start loading at : 12:59:20
> Finished loading at : 03:48:44
> 
> [EMAIL PROTECTED]:~/projecten/designer>
>  
> As you can see it took almost 15 hours to load the last image 
> 
> Ksysguard reported very erratic memory allocating/deallocating in blocks 
> ranging from ~25 Mb to ~150 Mb

Filename: big.bmp
File size : 168.750.054
real    0m18.600s
user    0m11.521s
sys     0m1.611s

Code:
  bmp:=TBitmap.Create;
  bmp.LoadFromFile('big.bmp');
  bmp.Free;

Are you sure, that you have enough memory?
The bmp reader copies the image in memory, so it needs multiple times the
size of the stream.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to