Fix T97272: Lag when resizing viewports.
Viewports where cleared explicitly due to compatibility reasons with Intel iGPUs. This slowed down other platforms as well, this wasn't noticeable on all platforms. This patch will be more selective when to enable the workaround. Currently only for iGPUs on Mac + Linux.
This commit is contained in:
@@ -419,6 +419,13 @@ static void detect_workarounds()
|
||||
GCaps.shader_storage_buffer_objects_support = false;
|
||||
}
|
||||
|
||||
/* Certain Intel based platforms don't clear the viewport textures. Always clearing leads to
|
||||
* noticeable performance regressions. */
|
||||
if (GPU_type_matches(
|
||||
GPU_DEVICE_INTEL, static_cast<eGPUOSType>(GPU_OS_MAC | GPU_OS_UNIX), GPU_DRIVER_ANY)) {
|
||||
GCaps.clear_viewport_workaround = true;
|
||||
}
|
||||
|
||||
/* Metal-related Workarounds. */
|
||||
|
||||
/* Minimum Per-Vertex stride is 1 byte for OpenGL. */
|
||||
|
||||
Reference in New Issue
Block a user