On Tuesday 23 August 2005 11:19, Mattias Gaertner wrote:
> On Tue, 2 Aug 2005 02:09:35 +0200
>
> Ger Remmers <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > Back to working with Lazarus after an away of a year. And I have seen a
> > lot of good stuff has happend during that time.
> >
> > I have written a graphics app (in D3 for display/render design) that
> > heavily depends on large bitmaps.
> >
> > First I tried to use the "Convert Delphi to Lazarus Project" option but I
> > ran into a lot of things that couldn't be converted because they were
> > build on specific Windows tricks. Not a big deal because a lot needs
> > re-thinking/designing anyway.
> >
> > Building a test app I ran into 2 major problems that I can't figure out.
> >
> > First, when loading an image bigger then the Form the scrollbars are okay
> > but as soon as I resize the Form the scrollbars go full-length so
> > scrolling is no longer possible.
> > 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
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives