Microsoft DirectX 9.0 SDK Update (October 2004) |
When using streaming buffers, limit the frequency of notifications and data writes. Do not create buffers with many notification positions, or small buffers with notifications at very short intervals. A streaming buffer can work efficiently and reliably with as few as three notification positions.
Performance is affected when you make control changes on a secondary buffer. To improve performance, reduce the frequency of calls to IDirectSoundBuffer8::SetVolume, IDirectSoundBuffer8::SetPan, and IDirectSoundBuffer8::SetFrequency. For example, if you have a routine that moves a sound from the left to the right speaker in synchronization with animation frames, try calling the SetPan method only every second or third frame.
Keep in mind that 3-D buffers in software make high demands on the central processing unit. To limit these demands you can do the following:
See Also