brucexs wrote  (on 11.08.2006 15:11):

> I have found FreeImage which from the docs seems to be exacly what I 
> am looking for.  The libpng stuff is too low level for what I want.

Does this mean we have PNGs soon? Oh boy :) *rubhands*


> On caching:  how many different bitmap file names do you use?  Right 
> now, the cache can hold up to 32.

I don't know the exact count but should be about 15-20.


> Right now, all bitmaps are pre-loaded into a shared pool. I also am 
> wondering whether it might be simpler to just to give up on pre-
> loading and caching and read the file each time the image is 
> needed.

As Mockey and I have said before, it's easy to generate unique names, by 
simply adding a timestamp. Actually I'm doing this in my script. Anyway, 
I'd rather prefer cached bitmaps, especially on slower machines it can 
make a difference.

IMO one simple command called Exec.ClearBitmapCache or alike would be 
totally sufficient. Whenever someone explicitly wishes to get the latest 
copy of a bitmap, s/he can call this function and is good to go. 
Besides, it should be easy to implement as well.



 > That happens right now for icons in some circumstances and
 > does not seem to cause a performance issue when it does.

Actually it does. I have 2 menus where the menu is shown with remarkable 
delays as compared to my other menus: "Menu RecentCommands" and a "Menu 
Folder somedir" where I copied shortcuts of selected Control Panel 
items. Even on a fast, idling machine, the RecentCommands menu with 20 
items may take 3-7 seconds to show up. PP even used to totally lock up 
if a program had been started from a network drive which isn't available 
anymore (I haven't tested this lately).

Thanks for your efforts!

Peace,
Cü


Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to