summaryrefslogtreecommitdiff
path: root/indra/newview/llfeaturemanager.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2018-06-04 23:18:37 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2018-06-04 23:18:37 +0300
commit546fc96f01298fe16f1cb0454e65569c77c44090 (patch)
tree6602ed1186c2ecd3dfcdf0086ed36e32843312f6 /indra/newview/llfeaturemanager.cpp
parent0e9c0e0daf7c92a90a0b4ed2070cc8c2abe2aeb0 (diff)
MAINT-8721 Enabled benchmarking for Intel GPUs
Diffstat (limited to 'indra/newview/llfeaturemanager.cpp')
-rw-r--r--indra/newview/llfeaturemanager.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp
index bc96ee00f7..8f1641e908 100644
--- a/indra/newview/llfeaturemanager.cpp
+++ b/indra/newview/llfeaturemanager.cpp
@@ -407,7 +407,16 @@ bool LLFeatureManager::loadGPUClass()
if (!gSavedSettings.getBOOL("SkipBenchmark"))
{
//get memory bandwidth from benchmark
- F32 gbps = gpu_benchmark();
+ F32 gbps;
+ try
+ {
+ gbps = gpu_benchmark();
+ }
+ catch (const std::exception& e)
+ {
+ gbps = -1.f;
+ LL_WARNS("RenderInit") << "GPU benchmark failed: " << e.what() << LL_ENDL;
+ }
if (gbps < 0.f)
{ //couldn't bench, use GLVersion