diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-05-10 09:10:46 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-05-10 09:48:51 +0300 |
commit | 439f86ac89bdd649aa9ccfe258c5f80474788449 (patch) | |
tree | c2a6a3e183603360479a787e56805b1ac8bcf914 /source/blender/gpu/intern/gpu_capabilities.cc | |
parent | 11aa237858d4a2f12db43bac97793606eda7f542 (diff) |
Fix T97272: Lag when resizing viewports.temp-T97272
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.
Diffstat (limited to 'source/blender/gpu/intern/gpu_capabilities.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_capabilities.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_capabilities.cc b/source/blender/gpu/intern/gpu_capabilities.cc index b750dacaca6..72b62b3de3d 100644 --- a/source/blender/gpu/intern/gpu_capabilities.cc +++ b/source/blender/gpu/intern/gpu_capabilities.cc @@ -142,6 +142,11 @@ bool GPU_use_hq_normals_workaround() return GCaps.use_hq_normals_workaround; } +bool GPU_clear_viewport_workaround() +{ + return GCaps.clear_viewport_workaround; +} + bool GPU_compute_shader_support() { return GCaps.compute_shader_support; |