From 5cfa9ad6675ae834053fc323d3feca8c750fa658 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Wed, 3 Apr 2019 12:23:12 -0700 Subject: [PATCH] Set the name of the main render thread (#1059) --- app/src/main/cpp/BrowserWorld.cpp | 4 +++- app/src/main/cpp/vrb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/BrowserWorld.cpp b/app/src/main/cpp/BrowserWorld.cpp index 331656ee9..6f0a5c790 100644 --- a/app/src/main/cpp/BrowserWorld.cpp +++ b/app/src/main/cpp/BrowserWorld.cpp @@ -45,6 +45,7 @@ #include "vrb/TextureCache.h" #include "vrb/TextureSurface.h" #include "vrb/TextureCubeMap.h" +#include "vrb/ThreadUtils.h" #include "vrb/Toggle.h" #include "vrb/Transform.h" #include "vrb/VertexArray.h" @@ -88,7 +89,7 @@ typedef std::shared_ptr SurfaceObserverPtr; class SurfaceObserver : public SurfaceTextureObserver { public: SurfaceObserver(crow::BrowserWorldWeakPtr& aWorld); - ~SurfaceObserver(); + ~SurfaceObserver() override; void SurfaceTextureCreated(const std::string& aName, GLuint aHandle, jobject aSurfaceTexture) override; void SurfaceTextureHandleUpdated(const std::string aName, GLuint aHandle) override; void SurfaceTextureDestroyed(const std::string& aName) override; @@ -538,6 +539,7 @@ BrowserWorld::InitializeJava(JNIEnv* aEnv, jobject& aActivity, jobject& aAssetMa }); m.modelsLoaded = true; } + SetThreadName("VRB Render"); } void diff --git a/app/src/main/cpp/vrb b/app/src/main/cpp/vrb index 730055923..33c0721cf 160000 --- a/app/src/main/cpp/vrb +++ b/app/src/main/cpp/vrb @@ -1 +1 @@ -Subproject commit 730055923a7fe30d342a0cf3ab5c4e0d56667743 +Subproject commit 33c0721cf635a9778d282dfb7ffd62b9f3ee2fe4