DirectSound Memory Leak

New releases and general discussions.

Post » Fri Aug 08, 2008 4:24 pm

I was recently working on my game, implementing sound, when I noticed that there was a large memory leak in the DirectSound object. Everytime I use "play resource at object", the sound is reloaded into memory without getting rid of the old one, so memory gets sucked up incredibly quickly, resulting in extremely slow performance eventually.

I reported this to the bug tracker, but I want to know if anybody else has had this issue.
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Fri Aug 08, 2008 5:01 pm

If you turn of caching, does this still happen?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Fri Aug 08, 2008 5:35 pm

Just tried turning off caching, and it did keep the memory usage from inflating.

One other thing, though. Sound seems to slow it down quite a bit while too many positioned sounds are playing. Is there any way to speed this up?
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests