Home » U++ Library support » FileSel&FileList, Path » FileSel takes quite a lot of CPU on Windows
Re: FileSel takes quite a lot of CPU on Windows [message #58420 is a reply to message #58419] |
Wed, 18 May 2022 15:01 |
Tom1
Messages: 1212 Registered: March 2007
|
Senior Contributor |
|
|
Mirek,
It looks like a flag to avoid lookup of exe icons helps here. It needs just four lines of code added/changed in FileSel.
Add to class FileSel in FileSel.h:
bool load_exe_icons;
FileSel& LoadExeIcons(bool b = true) { load_exe_icons = b; return *this; }
Add if condition to end of FileSel::SearchLoad() in FileSel.cpp:
if(load_exe_icons) lazyicons.Start(list, d, WhenIcon);
Reset flag default value added in FileSel::FileSel():
For my use, I would nearly always use LoadExeIcons(false); -- even as default -- as my default usage is to open documents, not exe files. However, setting load_exe_icons=true; by default, retains original default behavior.
Best regards,
Tom
[Updated on: Wed, 18 May 2022 15:06] Report message to a moderator
|
|
|
|
|
FileSel takes quite a lot of CPU on Windows
By: Tom1 on Fri, 22 April 2022 23:32
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: mirek on Wed, 18 May 2022 10:11
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: Tom1 on Wed, 18 May 2022 12:30
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: Tom1 on Wed, 18 May 2022 13:42
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: Tom1 on Wed, 18 May 2022 15:01
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: mirek on Thu, 19 May 2022 08:57
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: Tom1 on Thu, 19 May 2022 09:48
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: mirek on Thu, 19 May 2022 09:55
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: Tom1 on Thu, 19 May 2022 10:30
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: mirek on Thu, 19 May 2022 10:33
|
|
|
Re: FileSel takes quite a lot of CPU on Windows
By: Tom1 on Thu, 19 May 2022 11:08
|
Goto Forum:
Current Time: Sat Apr 27 15:49:34 CEST 2024
Total time taken to generate the page: 0.04679 seconds
|