Repository navigation
fix(timeline): resolve shader asset paths relative to baseUrl and cache WebGL assets - #929
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 31, 2026 06:03
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces caching mechanisms for BMFont configurations, images, and shader strings in WebGLUtil to optimize asset loading, and adds a new clearCache method. It also includes a comprehensive test suite in glutil.spec.ts to verify the caching and utility behaviors. The feedback suggests using an absolute import path in the test file instead of a relative one to align with project standards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
baseUrl(with<base href="...">). Removed the leading/insertion inWebGLUtil.getShaderStringso relative paths resolve againstdocument.baseURI.WebGLUtilfor shaders (shaderCache), BMFont configuration JSON (bmFontConfigCache), and images (imageCache) to avoid duplicate fetch requests and redundant allocations.WebGLUtil.clearCache()to clear all WebGL asset caches.glutil.spec.tsverifying path resolution with custom<base href>, caching deduplication, error handling/retry, andSharedTmpBuffermemory behavior.Test Plan
make test-web(verified 1088/1088 tests passing).make lint-webandmake build-storybook.make pre-commit.