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
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Fri Aug 08, 2008 5:01 pm

If you turn of caching, does this still happen?
Scirra Founder
B
399
S
236
G
89
Posts: 24,539
Reputation: 195,422

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
113
S
41
G
20
Posts: 1,586
Reputation: 19,126


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest