Skip to content

Commit 54275c6

Browse files
pengdevgithub-actions[bot]
authored andcommitted
fix Vulkan destroy blocking main thread causing UI lag
Set isRendererReady = false in releaseRenderSurface() so that destroy() takes the fast path and signals the main thread immediately instead of waiting for full synchronous cleanup on the render thread. This is consistent with GLMapboxRenderThread which sets isRendererReady = false in releaseEglSurface(). GitOrigin-RevId: ea68c9d827e73359ef1684717fd9ae7c1975d7e5
1 parent 332c86d commit 54275c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maps-sdk/src/main/java/com/mapbox/maps/renderer/VulkanMapboxRenderThread.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ internal class VulkanMapboxRenderThread(mapboxRenderer: MapboxRenderer, mapName:
9090

9191
override fun releaseRenderSurface() {
9292
nativeVulkanManager?.releaseSurface()
93+
isRendererReady = false
9394
}
9495

9596
override fun clearRendererStateListeners() {

0 commit comments

Comments
 (0)