Skip to content

Render preview: the 128 MiB geometry budget blocks large assemblies on desktop, and its message is nearly unreadable #4127

Closed

Description

@SiroArt

What happens
Opening a large assembly (a Prusa Core One STEP, 194 bodies) in the Render workspace shows only this line, centred on an empty pane:

product preview exceeds the 128 MiB geometry upload budget

Two problems:

  1. The limit. gpu_scene in crates/ui-egui/src/render_workspace.rs refuses to build the preview once the product meshes pass a fixed 128 MiB (MAX_GEOMETRY_BYTES). It was added with the integrated render workspace in render: persist and consume opaque PBR in product preview and PNG #1046. On a desktop with a real GPU this is not a hardware limit, so the user simply cannot render a normal assembly. There is no setting to raise it and no way to render a part of it from this screen.
  2. The message. It is light grey text on a light grey background, so it is barely visible (see the screenshot below). It does not say which part is too big, how big the scene is, or what to do about it (hide or isolate bodies, lower the detail).

Render pane showing the 128 MiB message in light grey on light grey

Expected

  • On desktop there is no fixed limit. If the scene cannot be rendered, the user gets a warning that says why (for example "the GPU could not allocate 1.4 GiB for the geometry") instead of a hard refusal at an arbitrary size.
  • The message uses normal text contrast, says the size against what failed, and names what the user can do (hide or isolate bodies, then try again).
  • Platforms that really are limited (web, small devices) can keep a cap, documented per platform.

Notes

Environment
Linux desktop, v0.18.1, Vulkan. Screenshot below (v0.18.1, Core One, 194 bodies).

Activity

  1. added
    area:render
    needs-triage
    on Oct 21, 2026
  2. raykholo commented on Oct 21, 2026

    @raykholo
    Contributor

    Reproduced on main@55587f4a, as you traced it: gpu_scene (crates/ui-egui/src/render_workspace.rs:373) refuses before building anything once the product meshes pass 128 MiB.

    For scale: it charges 3 vertices × 48 bytes = 144 bytes per triangle, so the cap is 932,067 triangles for the whole scene. A generated, non-overlapping grid of 932,068 triangles opens fine and is refused by the preview with exactly your message. A 194-body printer assembly is well past that.

    I couldn't capture the Render pane on the test machine, so I haven't checked the contrast part myself. Your screenshot is the evidence for that.

  3. added
    in progress
    on Oct 21, 2026
  4. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    Claimed by @raykholo through #4154. The claim lapses after 14 days without pushes.

  5. added a commit that references this issue on Oct 21, 2026
  6. 2 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:renderin progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions