Precaching of pages in memory

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

nver
User
Posts: 6
Joined: Thu Aug 07, 2008 6:12 pm

Precaching of pages in memory

Post by nver »

When viewing pdf documents and scrolling more or less complex pages (image-based), the newly appearing parts get drawn gradually and it is seen even on not so slow processor. A feature to optionally "predraw" the previous and next page (as if it has been already viewed) would be nice.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Precaching of pages in memory

Post by Stefan - PDF-XChange »

Hi nver,

Depending on the scrolling speed and the size of the images inside your file it might not be possible for the computer to catch up to that speed, even if there was some "preemptive" rendering.
While there are lots of optimizations done in our viewer, some tasks are not easy (in terms of computing resources needed) and should only be undertaken when needed, and as you are free to jump from page 1 to e.g. page 22, the viewer can not try to "predict" and consume valuable resources needed elsewhere in your system (if we were still in dos environment and only one application was running at a time... but that's another story ;) )

We are planning to introduce similar algorithms to the viewer that would allow for autoscrolling, but there are no such tricks up our sleeve for now.

Cheers,
Stefan
nver
User
Posts: 6
Joined: Thu Aug 07, 2008 6:12 pm

Re: Precaching of pages in memory

Post by nver »

I was talking about an option to predraw the next page for reading in consecutive order. Of course it is not possible to do this immediately. It could be done in a low priority thread and if user paused on a page for a while and there are no cpu-intensive tasks running in the system, the next page wouldn't have to be drawn in real-time. That would be more beautiful. For example when reading a pdf-magazine with lots of pictures, I scroll it page by page and I stay on one page more than enough for the next page to be drawn (a page draws in 3-4 secs).
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Precaching of pages in memory

Post by Stefan - PDF-XChange »

Hi again nver,

Your point is clear, it's just that at this moment our Viewer is not trying to do such pre-rendering.
As I already told you we have it planned and under development so eventually it will happen - but as of when exactly I can not tell at this moment.

Regards,
Stefan
nver
User
Posts: 6
Joined: Thu Aug 07, 2008 6:12 pm

Re: Precaching of pages in memory

Post by nver »

Hello, Tracker Supp-Stefan
Got it. Thank you for the reply :)
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: Precaching of pages in memory

Post by John - Tracker Supp »

:)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com