Jump to content
  • Advertisement
Sign in to follow this  
ChenA

why dsound CommitDeferredSettings call regopenkeyex?

This topic is 1866 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i use vtune to analyse my application, but i found a unexpected hotspot.

 

IDirectSound3DListener8::CommitDeferredSettings, i don't know why this function will call RegOpenKeyEx.

 

my os is win7 64.

any suggestion will be appreciated, thanks.

 


[attachment=15718:dsound.jpg]

Share this post


Link to post
Share on other sites
Advertisement

It is expensive to change the listener settings in DirectSound, which is why you use the CommitDeferredSettings function (to apply all changes at once), as for why it involves the registry i'm not sure.

 

It shouldn't really be a hotspot though since you shouldn't have to call that function all that often. (once per listener and frame should be enough, and you probably don't need more than one listener)

Edited by SimonForsman

Share this post


Link to post
Share on other sites

It is expensive to change the listener settings in DirectSound, which is why you use the CommitDeferredSettings function (to apply all changes at once), as for why it involves the registry i'm not sure.

 

It shouldn't really be a hotspot though since you shouldn't have to call that function all that often. (once per listener and frame should be enough, and you probably don't need more than one listener)

thanks, i just use one listener, and i just call CommitDeferredSettings once every frame.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!