Repository navigation
cobalt/gpu: disable GPU shader disk cache - #13044
Merged
Merged
Conversation
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds the switches::kDisableGpuShaderDiskCache command-line switch to CobaltMainDelegate::BasicStartupComplete(). However, this change is applied unconditionally across all platforms. Since this optimization appears to be intended specifically for Android, it should be wrapped in an #if defined(OS_ANDROID) preprocessor block to avoid disabling the GPU shader disk cache on other platforms.
johnxwork
approved these changes
Sep 30, 2026
briantting
pushed a commit
that referenced
this pull request
Oct 6, 2026
Refer to original PR: #13044 This PR appends the `kDisableGpuShaderDiskCache` switch in `cobalt_main_delegate.cc`. It's likely that its experiment showing positive YTT could have been due to arm imbalance and that the cache in reality is mostly seeing regressions in app start latency. Keeping as a one-line change if it's decided to be re-enabled in the future. See previous PR's: #12722 , #11752 Bug: 522949412 Bug: 567569625 (cherry picked from commit 5472309)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #13044 This PR appends the `kDisableGpuShaderDiskCache` switch in `cobalt_main_delegate.cc`. It's likely that its experiment showing positive YTT could have been due to arm imbalance and that the cache in reality is mostly seeing regressions in app start latency. Keeping as a one-line change if it's decided to be re-enabled in the future. See previous PR's: #12722 , #11752 Bug: 522949412 Bug: 567569625 (cherry picked from commit 5472309)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #13044 This PR appends the `kDisableGpuShaderDiskCache` switch in `cobalt_main_delegate.cc`. It's likely that its experiment showing positive YTT could have been due to arm imbalance and that the cache in reality is mostly seeing regressions in app start latency. Keeping as a one-line change if it's decided to be re-enabled in the future. See previous PR's: #12722 , #11752 Bug: 522949412 Bug: 567569625 (cherry picked from commit 5472309)
ryannchoi
added a commit
that referenced
this pull request
Oct 20, 2026
CobaltMainDelegate appends --disable-gpu-shader-disk-cache unconditionally (#13044), so every launch recompiles all Skia/GL shaders, and on a preloaded launch that work sits directly on the user's path to the first frame. On Starboard, skip the disable switch only for a concealed launch=preload start (started invisible with launch=preload on the command line), and compile the existing ShaderCache / GrShaderCache directory overrides in CobaltContentBrowserClient for Starboard too. All other launches, and all non-Starboard platforms, keep the cache disabled as before. b/538037113
ryannchoi
added a commit
that referenced
this pull request
Oct 22, 2026
CobaltMainDelegate appends --disable-gpu-shader-disk-cache unconditionally (#13044), so every launch recompiles all Skia/GL shaders, and on a preloaded launch that work sits directly on the user's path to the first frame. On Starboard, skip the disable switch only for a concealed launch=preload start (started invisible with launch=preload on the command line), and compile the existing ShaderCache / GrShaderCache directory overrides in CobaltContentBrowserClient for Starboard too. All other launches, and all non-Starboard platforms, keep the cache disabled as before. b/538037113
ryannchoi
added a commit
that referenced
this pull request
Oct 22, 2026
CobaltMainDelegate appends --disable-gpu-shader-disk-cache unconditionally (#13044), so every launch recompiles all Skia/GL shaders, and on a preloaded launch that work sits directly on the user's path to the first frame. On Starboard, skip the disable switch only for a concealed launch=preload start (started invisible with launch=preload on the command line), and compile the existing ShaderCache / GrShaderCache directory overrides in CobaltContentBrowserClient for Starboard too. All other launches, and all non-Starboard platforms, keep the cache disabled as before. b/538037113
ryannchoi
added a commit
to ryannchoi/cobalt
that referenced
this pull request
Oct 26, 2026
CobaltMainDelegate appends --disable-gpu-shader-disk-cache for every launch (youtube#13044), so each launch recompiles all Skia shaders, and on a preloaded launch that work sits directly on the user's path to the first frame. youtube#13164 re-enables the cache behind kCobaltGpuShaderDiskCache on Android only. On Starboard, remove the switch again in PostEarlyInitialization() for a preload launch: started concealed (kSbEventTypePreload) with launch=preload on the command line. Visible launches, concealed launches without launch=preload, and all other platforms are unchanged. The ShaderCache / GrShaderCache directory overrides now also compile on Starboard, where GrShaderCache follows kCobaltStorageCleanup like ShaderCache since the cache is enabled per launch rather than by the Android feature. Bug: 538037113
ryannchoi
added a commit
to ryannchoi/cobalt
that referenced
this pull request
Oct 26, 2026
CobaltMainDelegate appends --disable-gpu-shader-disk-cache for every launch (youtube#13044), so each launch recompiles all Skia shaders, and on a preloaded launch that work sits directly on the user's path to the first frame. youtube#13164 re-enables the cache behind kCobaltGpuShaderDiskCache on Android only. On Starboard, remove the switch again in PostEarlyInitialization() for a preload launch: started concealed (kSbEventTypePreload) with launch=preload on the command line. Visible launches, concealed launches without launch=preload, and all other platforms are unchanged. The ShaderCache / GrShaderCache directory overrides now also compile on Starboard, where GrShaderCache follows kCobaltStorageCleanup like ShaderCache since the cache is enabled per launch rather than by the Android feature. Bug: 538037113
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.
This PR appends the
kDisableGpuShaderDiskCacheswitch incobalt_main_delegate.cc. It's likely that its experiment showing positive YTT could have been due to arm imbalance and that the cache in reality is mostly seeing regressions in app start latency. Keeping as a one-line change if it's decided to be re-enabled in the future.See previous PR's: #12722 , #11752
Bug: 522949412
Bug: 567569625