Warn about SSE performance with non-multiple-of-4 update sizes

This commit is contained in:
Chris Robinson
2012-09-11 11:17:41 -07:00
parent 88b0c30152
commit f4642953d4
+6
View File
@@ -1624,6 +1624,12 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(device->Type != Loopback && !device->Hrtf && GetConfigValueBool(NULL, "wide-stereo", AL_FALSE))
device->Flags |= DEVICE_WIDE_STEREO;
if(!device->Hrtf && (device->UpdateSize&3))
{
if((CPUCapFlags&CPU_CAP_SSE))
WARN("SSE performance is degraded with a non-multiple of 4 update size (%u)\n", device->UpdateSize);
}
oldMode = SetMixerFPUMode();
ALCdevice_Lock(device);
context = device->ContextList;