PreloadAllItems CPU Issue
Posted: Sun May 06, 2012 6:13 am
I am experiencing a problem with LoadFromDirectory and PreloadAllItems. If PreloadAllItems is false and there are a fair amount of files in the directory, say 100+, the CPU usage goes to 100%(well using all of one core so in the case of a four core system to 25%). And it just sits there, eating all of one of the CPU core's cycles. Now, if I change PreloadAllItems to true, yes I get 100% CPU usage but that's only until all of the icons have been loaded. This is expected. What isn't expected when PreloadAllItems is false and the CPU just sits there pegged forever. The only way to get it off 100% is to scroll through all of the thumbnails. Once all of the thumbnails have been loaded by manually scrolling then the CPU usage drops to 0%. Any ideas? I would really like to use PreloadAllItems and set it to false and keep the CPU usage down but still give the user the ability to scroll and take the CPU hit when they scroll. But right now even without scrolling the CPU just goes to 100% and sits there forever(unless like I said earlier you just scroll manually through all the thumbnails and then it goes to 0%).