[8.0ß1] Lister - slow menu redraw
Moderators: Hacker, petermad, Stefan2, white
[8.0ß1] Lister - slow menu redraw
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?
I think the image lister in this moment reopen and redraw whole image.
Can you change lister algorithm or its depends on gdiplus.dll?
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately I cannot confirm it - how large are they (pixel x pixel)?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
For example this image http://www.aroundspb.ru/maps/1821/059_finlyandiya.jpg is about 9000x13000 pixels and 10Mb size.
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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!
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!
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
Since it is an .jpg file it is no longer ( TC 8 ) XnView that loads it, but Lister itself using GDI+And I try 8.0b3 - it load image using XnView in high quality and with menu slowdown.
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
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
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50519
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: