- update comment on SSBOs.

This commit is contained in:
Christoph Oelckers 2023-03-26 10:43:27 +02:00
parent cffe67dcee
commit 7537f415ce
2 changed files with 3 additions and 4 deletions

View file

@ -179,12 +179,10 @@ public:
#endif
}
// Hack alert: On Intel's GL driver SSBO's perform quite worse than UBOs.
// We only want to disable using SSBOs for lights but not disable the feature entirely.
// Note that using an uniform buffer here will limit the number of lights per surface so it isn't done for NVidia and AMD.
// SSBOs have quite worse performance for read only data, so keep this around only as long as Vulkan has not been adapted yet.
bool useSSBO()
{
return IsVulkan();// || ((hwcaps & RFL_SHADER_STORAGE_BUFFER) && allowSSBO() && !strstr(vendorstring, "Intel"));
return IsVulkan();
}
virtual DCanvas* GetCanvas() { return nullptr; }

View file

@ -794,6 +794,7 @@ void MapLoader::SpawnSpecials ()
// This also cannot consider lifts triggered by scripts etc.
case Generic_Lift:
if (line.args[3] != 1) continue;
[[fallthrough]];
case Plat_DownWaitUpStay:
case Plat_DownWaitUpStayLip:
case Plat_UpWaitDownStay: