Large files and speed
This page helps you work with big files. It tells you what Brsh does to stay fast.
What to expect
- Brsh is built and tested for files with thousands of layers.
- Edits, page switches and drags stay under 50 ms on a file with 7,382 layers.
- An agent edit rebuilds only the screens it changed. Sixty inserts into a file with 25,000 layers take about 30 ms.
- Automated tests fail when a whole-document step grows faster than the document.
Large files with many images
A large Figma file can have hundreds of MB, thousands of layers and hundreds of images. Brsh opens it without freezing the window.
- Brsh makes screen images for panning while the app is idle.
- Images load when the view comes near their screen.
- Large images draw from a smaller copy. A few are prepared in each frame.
- So zooming out over all images does not freeze the window.
Above 200% zoom, a very large image can look a little soft.
If the canvas stops drawing
The graphics driver can stop drawing the canvas. This can happen after sleep, a GPU switch or a driver reset.
- Wait a moment. Brsh draws on a new canvas at once, with the same design. It takes about 40 ms.
- If the new canvas cannot start yet, Brsh tries again after 0.2, 0.5, 1 and 2 seconds.
- If the canvas is lost more than 5 times in one minute, Brsh asks you to restart. Restart Brsh.
Memory
- Brsh gives back graphics memory that the canvas and Play have not used for a minute.
- It gives back all of it when the window is hidden.
- Play keeps its images, so it opens again at once.
Play
A long page scrolls from cached image rows. Only the layers that move are drawn again in each frame.