Skip to content

At 2160x3840, 7 full-frame elements with a filter are refused: each takes an atlas image the size of its box, not of what it draws #125

Open

Description

@Ragulsundaram

What happens

At 2160x3840, a page with 7 or more full-frame elements that each have a filter is refused:

REFUSED  frame 0: a page (2160x3840) was drawn without 1 of its images: Vello's image atlas (8192 px a side) has no room for them. Each element with a filter or a perspective transform is an image the size of its box, so fewer of them, or smaller boxes, draw it

6 draw, 7 drop 1 image, 8 drop 2, 12 drop 6. Each filtered element takes an image the size of its box, even when what it draws is small: here every box is full-frame but holds a 200x200 square.

Expected

The frame draws, as it does in Chrome. Either the filter's image is sized to what the element actually draws (its content's bounds plus the blur radius), or images that don't fit go to a second atlas page.

Why it matters

A Remotion-style motion blur (6 <Freeze> samples stacked over each other) around a scene whose exit uses filter: blur() is 6 full-frame blurred elements on its own; add one more filter anywhere (a grain overlay, a second scene overlapping it) and the frame is refused. In my 25 s 4K video this is frame 99, the only thing stopping it from rendering in one pass, so today I render four layers separately and stack them with ffmpeg (~50 s extra on a ~2 min render). Thanks for turning the silent drop from #96 into a clear refusal; it made this easy to find.

Repro (raea 0.1.2, macOS 26.5 arm64, Apple M5 Pro)

import React from "react";
import {AbsoluteFill, Composition, registerRoot} from "raea";
const N = 7; // 6 draws, 7 is refused
const C = () => (
  <AbsoluteFill style={{background: "#333"}}>
    {Array.from({length: N}, (_, i) => (
      <AbsoluteFill key={i} style={{filter: "blur(4px)"}}>
        <div style={{position: "absolute", left: 100 + i * 280, top: 1800, width: 200, height: 200, background: "white"}} />
      </AbsoluteFill>
    ))}
  </AbsoluteFill>
);
registerRoot(() => <Composition id="atlas" component={C} width={2160} height={3840} fps={30} durationInFrames={1} />);

raea render atlas.tsx -o atlas.png --frame 0

Activity

  1. Ragulsundaram commented on Nov 15, 2026

    @Ragulsundaram
    ContributorAuthor

    @shinyobjectz please take a look at this

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions