From 0da2012da37eaef59e99cb14cc2bc0bec54cdfd0 Mon Sep 17 00:00:00 2001 From: csmartdalton Date: Fri, 4 Oct 2024 16:40:01 +0000 Subject: [PATCH] Calculate LOD ahead of time for image paints Since we don't do perspective transformations, the mipmap level-of-detail for image paints is constant throughout the entire shape. We can therefore save time by calculating the LOD ahead instead of relying on shader derivatives in the fragment shader. This also saves us from having to compute these derivatives explicitly outside of control flow, which further improves performance. To make room for LOD in the paintAuxBuffer, we also drop support for GL bindless textures, which do not work similarly to descriptor indexing in Vulkan, which we will use in the future if we decide this is a feature we need. Diffs= 7bef90845 Calculate LOD ahead of time for image paints (#8260) --- .rive_head | 2 +- submodules/rive-runtime | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rive_head b/.rive_head index 321771e0..cb523f27 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -b0a3b89cf6d89d81edde502ccd850835c2ae2c80 +7bef90845ad58f2787c92e1e5dc191dae2b8f8fb diff --git a/submodules/rive-runtime b/submodules/rive-runtime index ea005ad9..12d54ef3 160000 --- a/submodules/rive-runtime +++ b/submodules/rive-runtime @@ -1 +1 @@ -Subproject commit ea005ad959ae78dd00e43d1f5fbb5746ea293400 +Subproject commit 12d54ef3e76530fd6af630d90353885f011d28ed