You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: eagerly upload chunk textures to the GPU (#698)
Summary:
this pr changes when chunk textures are sent to the gpu. instead of uploading a
chunk lazily the first time it is drawn, each chunk's texture is now uploaded as
soon as its data finishes loading and that gpu texture is owned centrally for
the chunk's whole lifetime rather than by individual layers. once a chunk is on
the gpu its cpu copy is released to save memory, and its texture is freed when
the chunk is no longer needed. the image, label, and volume layers now share
these textures instead of each building and tracking their own.
there's a minor temporary regression: because a chunk's texture is freed the
moment it is no longer needed scrubbing through time can briefly show gaps
where the previous frame used to stay on screen while the next one loaded.
that smoothness returns once eviction is deferred under a budget, keeping
recently used textures resident. this does not affect volume rendering.
0 commit comments