ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Preload Images
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

zerob

164 Posts

Posted - Nov 29 2024 :  10:26:56  Show Profile  Reply
Hi Nigel

Is it possible to force a ImageEnMView (with PDF's or Movie Frames) or a ImageEnFolderMView with files to preload?

Right now the ImageEnMView stutters after a PDF load while scrolling, until all Pages got into view and then it scrolls smooth.
LookAhead soesn't seem to solve this.

A PreloadAll or PreloadXPages(x) and / or a a complete decoupling of loading and scrolling (with placeholders) would be nice.

Having a stutterfest while scrolling a ImageEnMView with 15 pages (or sometimes much more), until all pages have been scrolled into view, isn't really nice.

xequte

38619 Posts

Posted - Dec 01 2024 :  00:36:52  Show Profile  Reply
Are you loading as follows: ImageEnMView1.MIO.LoadFromFile(...)?

What is your StoreType? To prevent loading on demand, you can use ietThumb.

http://www.imageen.com/help/TImageEnMView.StoreType.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

zerob

164 Posts

Posted - Dec 01 2024 :  01:45:24  Show Profile  Reply
I connected a ImageEnMViewer to a ImageEnViewer and did load a PDF with either ImageEnView1.IO.LoadFromFilePDF or ImageEnView1.PdfViewer.LoadFromFile.

I tried without changing caching settings and then with:
ImageEnView1.PdfViewer.LoadOption := TPdfDocumentLoadOption.dloMemory;
ImageEnMView1.LookAhead := 50;
ImageEnMView1.EnableImageCaching := True;
ImageEnMView1.ImageCacheUseDisk := False;

And i set ietFastThumb, but changing it to ieThumb doesn't change anything. Even when i Load the PDF, wait 10-20 seconds and then scroll

When the PDF is loaded, i scroll the ImageEnMView and the scrollbar stutters until i scrolled down to the bottom and waited or if i don't stop scrolling, it stutters also on the way up (if i scroll up and down) and suddenly the stutter stopps and now all scrolling is smooth as butter.

It seems that ImageEnMView still loads the PDF pages only when they scroll into view and when it saw all pages, it runs smoothly.

I Imagined, when i wait for a few seconds, with LookAhead (or some magical preload function), then when i want to scroll, the ImageEnMView scrolls smoothly, without the need to scroll each Page into view (Inside of the ImageEnMView).
Go to Top of Page

xequte

38619 Posts

Posted - Dec 01 2024 :  19:43:40  Show Profile  Reply
Sorry, can you email me for the latest beta. In that configuration changing the StoreType will not improve the performance.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: