logo
Help Center/Work with support/Troubleshoot/Reduce memory usage in files

Reduce memory usage in files

You may encounter memory limitations if you are dealing with larger files or libraries in Motiff. This article will introduce how to adjust file memory so they work within these limitations.

Tip: The memory referred to in this article is a specific type of memory: WASM memory (WebAssembly Memory). Motiff uses WASM memory to render layers and elements on the canvas and provide a cloud-based collaborative experience.

Each browser has its own memory limit, with most browsers having a memory limit of 2GB per tab.

As Motiff is a design tool built on browser technology, these limitations apply when you are using desktop applications as well.

Manage memory

Motiff measures the current file's memory usage based on the percentage of available memory in the browser or device.

You can check the memory usage of a file by following these steps:

  1. 1.Click View - Memory usage. 'Reduce memory usage in files-1.png'
  2. 2.The memory usage will then be displayed in the upper left corner of the canvas. 'Reduce memory usage in files-2.png'

Memory usage warnings

To remind you of the current file's usage and potential risks, Motiff will display banners and warning prompts at specific thresholds.

Memory usage at 60%

When the file's memory usage reaches 60%, Motiff will display a yellow warning banner at the top of the editor.

At this point, your operations in the file may encounter performance issues, such as lag in multiplayer scenarios. 'Reduce memory usage in files-3.png'

Memory usage at 75%

When the file's memory usage reaches 75%, Motiff will display a red warning banner at the top of the editor, which cannot be closed.

At this time, you can still edit the file, but Motiff recommends that you take immediate action to protect your file. If you do not reduce memory usage now, there may be a risk of data loss. 'Reduce memory usage in files-4.png'

Memory usage at 100%

When the file's memory usage reaches 100%, Motiff will lock the file and notify you that there is no available memory space.

Users with Can edit permission can try to reload the file, such as closing the tab. Sometimes reloading the file can free up enough memory for you to continue viewing the file. 'Reduce memory usage in files-5.png'

Note: You may not see all warnings in order. When memory usage increases rapidly in a short time, you may not receive warnings.

Tips to reduce memory

Delete hidden layers

Although hidden layers are not visible on the canvas, Motiff needs to store and render this layer information, which causes hidden layers to occupy some memory usage.

You can reduce memory usage by deleting hidden layers.

Split libraries

The number of component sets and variants affects memory usage. For example, if there are only a few component sets in a library, but there are hundreds of variants, you may encounter memory limitations.

You can split a library file that occupies a large amount of memory into multiple files.

Split files

Files that contain multiple pages and a large number of high-resolution images can also encounter performance or memory issues.

You can create a new file for related pages in the current file:

  1. 1.Create a new file, open the original file in a new tab at the same time, and switch to the page with the layers you want to move.
  2. 2.Use the shortcuts ⌘ Command + A / Ctrl + A to select the contents of the target page.
  3. 3.Use the shortcut ⌘ Command + C / Ctrl +C to copy the page content to the clipboard.
  4. 4.Paste the content into the new file using the shortcut ⌘ Command + V / Ctrl +V.
  5. 5.In the page list of the original file, right-click its name to delete the page.

Note: Importing multiple texts, images, or vector networks will affect your file's memory usage.

During the import process, you may need to reduce the number of imported layers or lower the resolution of them.