feat(gpu): allow env overrides for renderer limits#2
Merged
darmie merged 2 commits intoFeb 3, 2026
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
darmie
approved these changes
Feb 3, 2026
Contributor
|
@mrchypark please fix formatting. Thanks for the PR |
darmie
added a commit
that referenced
this pull request
May 5, 2026
…eak (#29) Three feature-gate wins that drop default `blinc_layout` from 161 to 77 transitive deps (-52%) without forking or vendoring anything: 1. `blinc_test_suite` declared `image = "0.25"` with default features — that pulls `ravif` + `rav1e` + `av-scenechange` + `av1-grain` (the AV1 encoder stack) plus ~25 transitive crates into the workspace even though the harness only uses `image::open` and `RgbaImage`. Switched to `image.workspace = true` which inherits the existing png-only pin. Workspace dep count drops 551 → 510. 2. `blinc_media` (rodio + claxon + hound + lewton + cpal + alsa/coreaudio) was an unconditional dep of `blinc_layout`, so silent UIs paid the ~30-crate compile cost. Made the dep optional behind a new `media` feature; the `widgets::media` module is gated too. `blinc_app_examples` opts in so `video_demo` still builds. 3. `arboard`'s `image-data` default feature pulls the full `image` PNG codec (and on Linux extra X11 / GDK clipboard plumbing), even though most apps only paste/copy text. Switched to `default-features = false` and added a `clipboard_image` feature that flips `image-data` back on; `clipboard_read_image` / `clipboard_write_image` stub to None / false when off. Default `blinc_layout` consumer goes from 161 → 100 (after #2) → 77 (after #3) transitive deps. Both new features are opt-in, so no existing app silently loses functionality.
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.
Motivation
Heavy UI scenes can exceed default buffer sizes and renderer capacities. This adds opt-in environment overrides without changing default behavior.
Behavior
BLINC_WGPU_MAX_BUFFER_MBraises wgpumax_buffer_size(MiB), clamped to the adapter limit.BLINC_GPU_MAX_PRIMITIVES,BLINC_GPU_MAX_GLYPHS,BLINC_GPU_MAX_GLASS_PRIMITIVESoverride renderer capacities and are clamped bymax_storage_buffer_binding_size.Examples
Notes