1.9.3: Off-center rendering on startup

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
tyb
Posts: 3
Joined: Thu Aug 21, 2025 3:45 pm

1.9.3: Off-center rendering on startup

Post by tyb »

XnView: MP 1.9.3 - 64 bit
OS: Windows 10 64bit

When in "Fit images to Desktop" zoom mode and startup in Viewer mode, there are scenarios where the image will be initially rendered off-center in the window, then after about one second, it will shift into the correct place within the window.

This can be reliably reproduced in a couple of ways:

Method 1:
Load an image - double click to enter browser mode - exit application. Open the same image again. It will render off-center then snap into place a second later.

Method 2:
Find two images with very different aspect ratios, e.g. one in portrait and one in landscape. Open one of the images. Close the application. Open the other image.

I'm guessing the problem is there is some caching of viewport dimensions and/or coordinates going on behind the scenes. The previous render is influencing how the next render begins. Then when it finds the initial render is off-center, it re-renders the image correctly. The visible shifting is rather jarring and should be avoided or be fast enough to not be noticeable. I'm also guessing the same process happens when you navigate from one image to the next in viewer mode, just that the re-adjustment is so fast that it's almost imperceptible.

It may or may not be important, but I also have the catalogue completely disabled.
Post Reply