| 10-23-2004, 08:28 AM | #1 |
I'm trying to clean up some memory leaks in a map. It uses a large amount of sounds though out the map. the lags just gets worse as it goes along. I've already began cleaning up other ares where leaks occur. I would just like to know if i should be working on this one as well. |
| 10-24-2004, 03:09 AM | #2 |
Guest | The BJ function PlaySound does call DestroySoundWhenDone(soundHandle)... so it probably does. You could test it, tho ^ ^ This thread seems to suggest that there may not be anything you can do about some lag. Does it leak when you exit the game? I love your sig! |
| 10-24-2004, 06:34 AM | #3 |
Thanks for the input |
| 10-24-2004, 07:11 AM | #4 |
Guest | ...oh, wait. I was looking at the wrong function o.0 There is a PlaySound() that destroys the handle afterwards, but the function used by the GUI `Play Sound' does not destroy the handle. So it must sort of reuse the same sound (because the global still points to it), so there's no reason why it should leak... |
| 10-24-2004, 01:25 PM | #5 |
Maybe i should just post the map and see if any one else can clean it up. It's a great map, but i begin to lag horribly after a few levels on bnet. the 10k + doodads can't help it either. |
