|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
DriverHeaven Junior Member
Join Date: May 2003
Location: Ukraine, Kyiv
Posts: 20
Rep Power: 0 ![]() |
Optimization
Hello all!
I've read messages about using a lot of memory in kX mixer for skins. Yes, this is about 15MB in 3532 But why not to unload the pictures when mixer is minimized in system tray? It will take a lot less memory. Reloading of jpegs won't take a big time and the memory will be saved
|
|
|
|
|
|
#2 |
|
kX Project Lead Programmer and Coordinator
Join Date: Dec 2002
Posts: 3,119
Rep Power: 75 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
well, the files are extracted from the 'rar' archive first [this takes time]
so, it might make the mixer much slower there are no problems with freeing kX Mixer picture cache on window close probably, there will be an option (for fast and slow machines) -- anyway, I've managed to decrease memory usage by 4Mb (there was a bug in 353x series) -- it should take less now -- this fix seems to be included in 3533rc1/Eugene |
|
|
|
|
|
|
||
|
DriverHeaven Junior Member
Join Date: May 2003
Location: Ukraine, Kyiv
Posts: 20
Rep Power: 0 ![]() |
Quote:
Quote:
|
||
|
|
|
|
|
#4 |
|
kX Project Lead Programmer and Coordinator
Join Date: Dec 2002
Posts: 3,119
Rep Power: 75 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
the 'general discussion' -- it was released unofficially for testing purposes
/E |
|
|
|
|
|
#5 |
|
HardwareHeaven Lover
Join Date: Mar 2003
Posts: 127
Rep Power: 0 ![]() |
i have found a way to decrease much memory
just unrar the skin and rerar it,using the min compress radio,then the memory usage can down a lot
__________________
|
|
|
|
|
|
|
|
|
DriverHeaven Junior Member
Join Date: May 2003
Location: Ukraine, Kyiv
Posts: 20
Rep Power: 0 ![]() |
Quote:
![]() 2. As I think, memory used not by UnRAR library, it's used by jpegs, and it's better to unload them on minimize 3. Simplest way - uncompress the skin into a 'temp' directory and use it as a cache. What do you think about this, Eugene? |
|
|
|
|
|
|
#7 |
|
kX Project Lead Programmer and Coordinator
Join Date: Dec 2002
Posts: 3,119
Rep Power: 75 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
perhaps using a temp folder might improve memory issues
I'll think about it (well, the actual idea isn't 100% new, however, I didn't want to implement it due to lack of time because there were not so many complains on memory usage)/E |
|
|
|
|
|
|
|
DriverHeaven Junior Member
Join Date: May 2003
Location: Ukraine, Kyiv
Posts: 20
Rep Power: 0 ![]() |
In addition, a big amount of memory is used by debug MFC dlls
Is there a way to build executable using retail DLLs (EXE: debug, DLLs: retail)? |
|
|
|
|
|
#9 |
|
kX Project Lead Programmer and Coordinator
Join Date: Dec 2002
Posts: 3,119
Rep Power: 75 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
there's a way
![]() but 'retail' versions of MFC libraries don't wish to work correctly (lot's of strange bugs / failures)we are currently migrating away to our own GUI library which won't be MFC-based most of the code is already re-written as soon as this process is finished, the new builds will need only msvcrt.dll ('release' build) /Eugene |
|
|
|
|
|
#10 |
|
HardwareHeaven Lover
Join Date: Mar 2003
Posts: 127
Rep Power: 0 ![]() |
to Max Shepelev:
i am serious,i test it with the creation3 skins,with max compress radio,it will take up to 33mb memory;but if use min compress radio,the mixer only use 6mb memory
__________________
|
|
|
|
|
|
#11 |
|
HardwareHeaven Lover
Join Date: Mar 2003
Posts: 127
Rep Power: 0 ![]() |
also
if you think jpeg is the problem,then convert them to bmp and remane them to bmp,ihave also tested it,it can work correctly
__________________
|
|
|
|
|
|
|
||
|
DriverHeaven Junior Member
Join Date: May 2003
Location: Ukraine, Kyiv
Posts: 20
Rep Power: 0 ![]() |
Quote:
![]() Quote:
|
||
|
|
|
![]() |
| Thread Tools | |
|
|