diff options
author | Chris Robinson <[email protected]> | 2012-09-11 11:17:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-11 11:17:41 -0700 |
commit | f4642953d47bbcf7653de86487590024f0cafab0 (patch) | |
tree | 4216e28f9fcc3507a69b3e69576b3c1d32c5c401 /Alc/ALc.c | |
parent | 88b0c301529659505ee70fef8245fb30ebecd42a (diff) |
Warn about SSE performance with non-multiple-of-4 update sizes
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |