Cache slows down viewing

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

kem

Cache slows down viewing

Post by kem »

Hi, I am using XnView for many years. I need very fast and smooth vieving for I frequently work with digital video frames.

I have been pretty disapointed with last version of XnView. Looping in view mode (holding PgDown key down) is 10x slover than in previous version. I did some trials in options settings and found out the problem is in caching. When I unchecked both "Read one image ahead" and "Keep current image in cache" then it is much more (10x) faster. It seems there is bug in caching.
User avatar
xnview
Author of XnView
Posts: 34093
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Cache slows down viewing.

Post by xnview »

kem wrote:Hi, I am using XnView for many years. I need very fast and smooth vieving for I frequently work with digital video frames.

I have been pretty disapointed with last version of XnView. Looping in view mode (holding PgDown key down) is 10x slover than in previous version. I did some trials in options settings and found out the problem is in caching. When I unchecked both "Read one image ahead" and "Keep current image in cache" then it is much more (10x) faster. It seems there is bug in caching.
Which version do you use, this problem is fixed in 1.80.3
Pierre.
Sleepy
Posts: 6
Joined: Mon Sep 26, 2005 6:44 am

Re: Cache slows down viewing.

Post by Sleepy »

xnview wrote:
kem wrote:Hi, I am using XnView for many years. I need very fast and smooth vieving for I frequently work with digital video frames.

I have been pretty disapointed with last version of XnView. Looping in view mode (holding PgDown key down) is 10x slover than in previous version. I did some trials in options settings and found out the problem is in caching. When I unchecked both "Read one image ahead" and "Keep current image in cache" then it is much more (10x) faster. It seems there is bug in caching.
Which version do you use, this problem is fixed in 1.80.3
Hello,
I am using 1.80.3 Minimal version right now.
However, I still have the problem that it takes some time to view the next image even though I check "Read One Image Ahead". I could see the bar reading the image in the right-bottom corner after I switch to next image. It seems that the image is not read in advance.
Could anyone please tell me how I could solve this problem???

Thank you very much.
User avatar
xnview
Author of XnView
Posts: 34093
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Cache slows down viewing.

Post by xnview »

Sleepy wrote:
xnview wrote:
kem wrote:Hi, I am using XnView for many years. I need very fast and smooth vieving for I frequently work with digital video frames.

I have been pretty disapointed with last version of XnView. Looping in view mode (holding PgDown key down) is 10x slover than in previous version. I did some trials in options settings and found out the problem is in caching. When I unchecked both "Read one image ahead" and "Keep current image in cache" then it is much more (10x) faster. It seems there is bug in caching.
Which version do you use, this problem is fixed in 1.80.3
Hello,
I am using 1.80.3 Minimal version right now.
However, I still have the problem that it takes some time to view the next image even though I check "Read One Image Ahead". I could see the bar reading the image in the right-bottom corner after I switch to next image. It seems that the image is not read in advance.
Could anyone please tell me how I could solve this problem???
Always the problem in 1.80.3??, you view your picture in fullscreen? After pressing F11 for example?
Pierre.
Guest

Re: Cache slows down viewing.

Post by Guest »

xnview wrote: Always the problem in 1.80.3??, you view your picture in fullscreen? After pressing F11 for example?
It happens no matter in Fullscreen or in View Screen.
But in the "View Screen", I could tell from the "progress bar" and "Press ESC to abort" in the statu bar.
Image
User avatar
xnview
Author of XnView
Posts: 34093
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Cache slows down viewing.

Post by xnview »

Anonymous wrote:
xnview wrote: Always the problem in 1.80.3??, you view your picture in fullscreen? After pressing F11 for example?
It happens no matter in Fullscreen or in View Screen.
But in the "View Screen", I could tell from the "progress bar" and "Press ESC to abort" in the statu bar.
Could you tell me if you have the problem from browser by pressing F11?
Pierre.
Sleepy
Posts: 6
Joined: Mon Sep 26, 2005 6:44 am

Re: Cache slows down viewing.

Post by Sleepy »

xnview wrote:
Anonymous wrote:
xnview wrote: Always the problem in 1.80.3??, you view your picture in fullscreen? After pressing F11 for example?
It happens no matter in Fullscreen or in View Screen.
But in the "View Screen", I could tell from the "progress bar" and "Press ESC to abort" in the statu bar.
Could you tell me if you have the problem from browser by pressing F11?
I could jump to Fullscreen by pressing F11 from browser with any problem.
However, even I view the pics in FullScreen, the issue (not reading one image ahead) still exists.
User avatar
xnview
Author of XnView
Posts: 34093
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Cache slows down viewing.

Post by xnview »

Sleepy wrote:I could jump to Fullscreen by pressing F11 from browser with any problem.
However, even I view the pics in FullScreen, the issue (not reading one image ahead) still exists.
Someone with the same problem (1.80.3)????
Pierre.
klaus2

Post by klaus2 »

Concerning the issue "Looping in view mode (holding PgDown key down)" i already reported earlier that with 1.80.3 and "read one image ahead" for me it seems to slow down visibly (full screen or not does not play a role).

... at least it appears so when you browse through a image list using frequently PgDown (in the viewer).

When i say "appears" i mean that this may be a subjective impression, due to the fact that while you're seeing image "n", in the background images "n+1", "n+2", "n+3" ... are processed (seen via caption and statusbar msg) without being displayed at that time.
That leads to the impression of a certain delay (with other words: time is spent for to calculate the next 10,20 .. pictures but no
compute time is left for to show the neighbouring next picture).

My personal fix is to set "read one image ahead" to "off" anyhow.
There's another thread here (cancel paint operation if meanwhile next image is requested), that could speedup stepping forward drastically.

klaus2
Additonal remark: as there's oftenly the comparison with acdsee, acdsee (at the same situation: keep PgDown pressed) lets the viewer area black until an image is fully read, so when stepping forward fast at least you have the impression it's speedier (whereas you cannot see any picture at that time ..).
For me xnview's approach is better (but without 'read one image ahead = on').
Sleepy
Posts: 6
Joined: Mon Sep 26, 2005 6:44 am

Re: Cache slows down viewing.

Post by Sleepy »

xnview wrote:
Sleepy wrote:I could jump to Fullscreen by pressing F11 from browser with any problem.
However, even I view the pics in FullScreen, the issue (not reading one image ahead) still exists.
Someone with the same problem (1.80.3)????
Am I still the only one who has this issue???
Sleepy
Posts: 6
Joined: Mon Sep 26, 2005 6:44 am

Re: Cache slows down viewing.

Post by Sleepy »

Sleepy wrote:
xnview wrote:
Sleepy wrote:I could jump to Fullscreen by pressing F11 from browser with any problem.
However, even I view the pics in FullScreen, the issue (not reading one image ahead) still exists.
Someone with the same problem (1.80.3)????
Am I still the only one who has this issue???
I don't know the reason but the reason was solved after I changed the language. Even though I changed it back to English, Xnview works properly.
Although it's kind of weird, anyways, it's solved right now.

Thanks for everyone's reply.
cozdas

Post by cozdas »

I'm seing the same problem too...

I used filemon from sysinternals to se what's going on, I see that XnView reads all of the files in the directory after hitting pagedown.

here is the log file.

Hope this helps
User avatar
xnview
Author of XnView
Posts: 34093
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

cozdas wrote:I'm seing the same problem too...

I used filemon from sysinternals to se what's going on, I see that XnView reads all of the files in the directory after hitting pagedown.

here is the log file.

Hope this helps
So to understand this problem, you open a file by the browser (enter or dbl click), you are in the view mode, and you press PgDown. Right?
Pierre.
cozdas

Post by cozdas »

correct,

But please note that the log I sent you only shows the portion after I pressed the pagedown. also I've noticed that the pictures in the log are the ones that are ahead of the current file (it didn't read the pictures whose names are smaller than the current one)

In more detail:
the pictures in that folder are DSCN7305 to DSCN8063 (total of 263 files with some missing file names)

I double clicked DSCN7339 and pressed pagedown to advance to DSCN7340. Then XnView read all the files from that point to the end (i.e. read all pictures between DSCN7340 and DSCN8063) in 2.5 seconds.

This happens only when the "read one image ahead" option is on. Looks like that option behaves like "read all images ahead" :D
User avatar
xnview
Author of XnView
Posts: 34093
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

cozdas wrote:correct,

But please note that the log I sent you only shows the portion after I pressed the pagedown. also I've noticed that the pictures in the log are the ones that are ahead of the current file (it didn't read the pictures whose names are smaller than the current one)

In more detail:
the pictures in that folder are DSCN7305 to DSCN8063 (total of 263 files with some missing file names)

I double clicked DSCN7339 and pressed pagedown to advance to DSCN7340. Then XnView read all the files from that point to the end (i.e. read all pictures between DSCN7340 and DSCN8063) in 2.5 seconds.

This happens only when the "read one image ahead" option is on. Looks like that option behaves like "read all images ahead" :D
Only when you have this setting, very strange. Could you tell me which sort setting do you have in the browser?
Pierre.
Post Reply