[8.0ß1] Lister - slow menu redraw

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ak73
Junior Member
Junior Member
Posts: 8
Joined: 2007-01-16, 19:03 UTC

[8.0ß1] Lister - slow menu redraw

Post by *ak73 »

When built-in lister open large JPG, PNG images, its menu navigation redraw very slowly. The white rectangles appears instead of menu items.
I think the image lister in this moment reopen and redraw whole image.
Can you change lister algorithm or its depends on gdiplus.dll?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I cannot confirm it - how large are they (pixel x pixel)?
Author of Total Commander
https://www.ghisler.com
ak73
Junior Member
Junior Member
Posts: 8
Joined: 2007-01-16, 19:03 UTC

Post by *ak73 »

For example this image http://www.aroundspb.ru/maps/1821/059_finlyandiya.jpg is about 9000x13000 pixels and 10Mb size.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Got it, thanks! No slowdown visible here, but maybe my PC is just too fast? I will try it on a slower PC with less memory.
Author of Total Commander
https://www.ghisler.com
ak73
Junior Member
Junior Member
Posts: 8
Joined: 2007-01-16, 19:03 UTC

Post by *ak73 »

I tryed on HP 630 notebook with dual-core CPU and 3Gb of memory, the OS was Windows XP SP3, but with buil-in Intel video graphics.
Now I start new beta 2 on old Compaq Evo N1000v with CeleronM and 1Gb of memory and Windows 2000 OS, but video graphics on it is ATI Radeon - menu in lister if very fast on it!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will try on my netbook. :)
Author of Total Commander
https://www.ghisler.com
ak73
Junior Member
Junior Member
Posts: 8
Joined: 2007-01-16, 19:03 UTC

Post by *ak73 »

I make some tests on notebooks with built-in Intel graphics. Slowdown visible only when "Fit image to window" or "Fit only large images to window" selected and in this cases high quality image displayed. When image in low quality appears - no slowdown visible.
I can't understand how low/high quality Total Commander select.
PS: In Process Explorer the thread with start address TOTALCMD.EXE+0x2cd390 take all CPU time when menu navigation. 8.0b2.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It seems like the Intel graphics isn't caching the image, so it has to be constantly redrawn. I don't think that I can do much about that. :(
Author of Total Commander
https://www.ghisler.com
ak73
Junior Member
Junior Member
Posts: 8
Joined: 2007-01-16, 19:03 UTC

Post by *ak73 »

OK. But bug is present anyway. I make some tests again.
Open big image with lister - menu slowdown present, then click "Options"-"Configure" and without any changes close it - no menu slowdown!
And bug with high/low image quality. How Total Commander select it? When lister open image with "F" or "L" options enabled - menu slowdown present and image in high quality, then disable "F" or "L" - image in original size and no menu slowdown, then enable "F" or "L" - image fit to page with low quality and no slowdown, then exit from lister and open this image again - high quality and slowdown present.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm sorry, I couldn't find any solution. Do you get this problem also with TC 7.56a when using Irfanview to load the image (no plugins)?
Author of Total Commander
https://www.ghisler.com
ak73
Junior Member
Junior Member
Posts: 8
Joined: 2007-01-16, 19:03 UTC

Post by *ak73 »

TC 7.56a load image using XnView in low quality always I try and no slowdown present.
And I try 8.0b3 - it load image using XnView in high quality and with menu slowdown.
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

And I try 8.0b3 - it load image using XnView in high quality and with menu slowdown.
Since it is an .jpg file it is no longer ( TC 8 ) XnView that loads it, but Lister itself using GDI+
Last edited by petermad on 2011-10-05, 10:53 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It seems that GDI+ doesn't convert the image to BMP as when loading via Irfanview. Instead, GDI+ just decodes the part of the JPG/GIF/PNG needed to be displayed. This is much more memory-friendly for large images, but makes it slower to actually extract the image.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, no solution so far.
Author of Total Commander
https://www.ghisler.com
Post Reply