b2: problem with loading images in separate thread

Bugs and Issues in 1.82 Test versions which have been fixed and verified as resolved.

Moderators: XnTriq, xnview

Locked
Xyzzy
Posts: 652
Joined: Tue Nov 23, 2004 10:17 pm
Location: Poland

b2: problem with loading images in separate thread

Post by Xyzzy » Wed Dec 28, 2005 3:28 pm

See here:
http://newsgroup.xnview.com/viewtopic.php?t=4422

I confirm.
To reproduce:
b2, delete ini.
Go to directory with many big images. Select image & press F11.
Now quickly press PgDown multiple times. Image loading is not interrupted and it should.
Also, after stopping pressing PgDown you can see keypresses still processed by XnView (a few next images are displayed).

X.

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

Re: b2: problem with loading images in separate thread

Post by xnview » Wed Jan 04, 2006 4:22 pm

Xyzzy wrote:See here:
http://newsgroup.xnview.com/viewtopic.php?t=4422

I confirm.
To reproduce:
b2, delete ini.
Go to directory with many big images. Select image & press F11.
Now quickly press PgDown multiple times. Image loading is not interrupted and it should.
Also, after stopping pressing PgDown you can see keypresses still processed by XnView (a few next images are displayed).
If you disabled "High quality', do you have always the problem?
With or without 'Read ahead'?
Pierre.

Xyzzy
Posts: 652
Joined: Tue Nov 23, 2004 10:17 pm
Location: Poland

Post by Xyzzy » Fri Jan 06, 2006 1:04 pm

Which 'High quality' do you mean?

X.

User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Post by Olivier_G » Fri Jan 06, 2006 1:50 pm

OK... I believe I was able to get "something" (and setting View>'High zoom quality' or 'Cache Read Ahead' didn't change anything...).

In Fullscreen, if you keep pressing PgDown on large images, you will actually skip the image AFTER the one being loaded... (the one being loaded will be fully loaded and displayed).
So: XnView is loading 1. You press 'next' => XnView continues to load 1 and will display 1, but will skip 2. It will then directly load and display 3.

This is not what I expected... :(
I hoped for the possibility to interrupt the current loading of image:
XnView is loading 1. You press 'next' => XnView immediately stops loading 1 and display what has been loaded so far of 1, before proceeding to 2.

Would this last behaviour be possible, Pierre?

Olivier

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

Post by xnview » Fri Jan 06, 2006 3:40 pm

Olivier_G wrote:OK... I believe I was able to get "something" (and setting View>'High zoom quality' or 'Cache Read Ahead' didn't change anything...).

In Fullscreen, if you keep pressing PgDown on large images, you will actually skip the image AFTER the one being loaded... (the one being loaded will be fully loaded and displayed).
So: XnView is loading 1. You press 'next' => XnView continues to load 1 and will display 1, but will skip 2. It will then directly load and display 3.

This is not what I expected... :(
I hoped for the possibility to interrupt the current loading of image:
XnView is loading 1. You press 'next' => XnView immediately stops loading 1 and display what has been loaded so far of 1, before proceeding to 2.

Would this last behaviour be possible, Pierre?
Do you have tested in beta 3? Loading is interupted!
Pierre.

Xyzzy
Posts: 652
Joined: Tue Nov 23, 2004 10:17 pm
Location: Poland

Post by Xyzzy » Fri Jan 06, 2006 8:05 pm

Well, I have tested now and I have mixed feelings.
I tested with 2-2.5MB JPEGs. If I press PageDown ten times in about 3 seconds, after last press there are still approx. 2 image skips to next picture.

I wonder if it may be caused by the way Windows processes keypress messages when under load (images are rendered), delivering them to application with some delay???

X.

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

Post by xnview » Sat Jan 07, 2006 2:21 pm

Xyzzy wrote:Well, I have tested now and I have mixed feelings.
I tested with 2-2.5MB JPEGs. If I press PageDown ten times in about 3 seconds, after last press there are still approx. 2 image skips to next picture.

I wonder if it may be caused by the way Windows processes keypress messages when under load (images are rendered), delivering them to application with some delay???
Yes i think, i'll try to fix it
Pierre.

Xyzzy
Posts: 652
Joined: Tue Nov 23, 2004 10:17 pm
Location: Poland

Post by Xyzzy » Fri Jan 13, 2006 1:46 pm

OK, I have checked with some other image browser and it seems it is "how things work". It can be improved, but rather not quite eliminated. If improvements are made, OK. If not, current behaviuor is acceptable as well.

Close.

X.

Locked