---
title: "Caching and Background Rendering"
url: "https://help.maxon.net/ag/en-us/Content/html/Caching_and_background_rendering.html"
section_path: "Parameter Management > Transform and Animation > Caching and Background Rendering"
description: "Calculation time can vary depending on image complexity and the number of composing elements (2D layers, 3D scenes, lighting, shadows, etc.). Each time …"
---

# Caching and Background Rendering

Calculation time can vary depending on image complexity and the number of composing elements (2D layers, 3D scenes, lighting, shadows, etc.). Each time *Autograph* calculates an image, it's stored so that it can be replayed as fast as possible in order to comply with the composition frame rate. This operation is called *Caching*.

*Autograph* uses both **RAM** and **physical storage** to keep these images in memory through the concept of "*virtual memory*", which is managed by your operating system. When you want to play a composition that lasts several minutes, you’re not limited by your computer’s available RAM. *Autograph* optimizes its cache by storing only the images that really need to be stored.

If the engine can calculate an image faster than the requested frame rate and play a composition in real time, this image won't be saved. In many cases, the storage process could take longer than the calculation itself.

## Rendering Indicators

At the very top of the *Viewer*, next to the **panel menu** icon on the right (three horizontal bars), there is an option to switch a panel to fullscreen.\
To the left there is:

- A **green area**
- A **blue area**
- A button to activate **background rendering**

![Image: cache_viewer_barre.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/cache_viewer_barre.jpg)

When playback starts, *Autograph* computes the images and stores them in the cache. This state is represented by the animated green zone.\
If an image is in the cache, it's marked in green at the top of the *Timeline* and will form a long green line as it goes.

![Image: green_barre_timeline.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/green_barre_timeline.jpg)

> **Note:** Any modification will invalidate the cache of several images, causing holes to appear in this green line, requiring these images to be recalculated.

## Background Rendering

A second **blue zone** also appears at the top of the *Viewer* along with a button that is disabled by default. This activates **background rendering**. When this option is enabled, no changes are made to the composition for one second. *Autograph* computes images in the background in the same way as playback.

In order to focus on the area you're working on, the calculated images will be those before and after the playhead. The green line will run on both sides. During calculation, the blue zone becomes animated, indicating that background rendering is in progress.

![Image: bkg_rendering.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/bkg_rendering.jpg)

> **Warning:** For people working on a laptop battery, **background rendering** can have a *major impact* on your computer's *autonomy*. Constantly computing and high-power consumption can greatly reduce it. This is why this option is disabled by default.

## Cache Settings

To **access the cache settings**, click on the **gear icon** at the top-right of the interface to access the **software preferences**, and go to the *Caching* section.

![Image: cache_settings.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/cache_settings.jpg)

### General Cache

The *Max General Cache Size* is set to **8GB** by default. This value defines the **maximum storage space used by the cache**, split into several files and subdirectories. You don't have to worry about the file content. The most important thing is to **define the cache location** and the **maximum space** it can take up on your storage.

To **change this value**, just **click and drag the slider** or **enter a new value** by clicking on it.\
The cache is divided into two groups:\
The *General cache path* allows you to define a custom directory in which the cache files will be stored.

> **Note:** Because physical storage is used, it is highly recommended to store the cache on the fastest unit of your computer, like an *SSD* or *NVMe*. This will speed up data exchange, both when storing images and reloading them.

### Media Conform Cache

Playing an image or a video can require a lot of resources depending on the algorithm used to encode it. For example, videos encoded with *h.264*, *h.265*, and *AV1* codecs sometimes need to decode dozens of frames to show a specific image (as they are based on GOP). If several layers in a composition use the same video source, it would be a shame not to share the decoding so that it could be reused. For each image *Autograph* decodes, a second *decoding cache* is written in a dedicated folder.

The cache will retain the file’s original bit depth. An *8bpc*, *16bpc*, or *32bpc* media file will produce the same type of cache, but will also produce variations of this image, at different resolutions. These variations, called *Mipmaps*, divide the size of the image by two recursively.

For example, an image sized 512×512 will result in the following list of Mipmaps:

- 256×256
- 128×128
- 64×64
- 32×32
- 16×16
- 8×8
- 4×4
- 2×2

If the *Viewer* displays a composition at less than 50%, or if a layer reduces its scale below 0.5, or more generally if an image needs to be processed at a smaller size than its original size, the Mipmaps will be used to speed up reading, transfer to the GPU, and reduce the amount of memory *Autograph* uses.

Once this data is read, color conversion is applied (if the *Colorspace correction* option of the reader is active), and converted on the go to 32bpc (float). *Autograph’s* engine works entirely in 32bpc linear and can directly reuse them and send them to the graphics card in this form. This ensures maximum quality without any data loss.

The *Max Media Conform Cache Size* is set to **8GB** by default. This value defines the maximum storage space used by this cache. To **change this value**, just click and drag the slider or enter a new value by clicking on it.\
The *Media Conform Cache Path* allows you to define a custom directory where the cache files will be stored.

## Composition Caching

![Image: composition_caching.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/composition_caching.jpg)

### A good way to optimize performance

*Autograph* always optimizes performance to speed up image calculation and reuses duplicated elements as much as possible; this should not be done at the expense of quality. When using a composition as a layer *Source* (*Sub-comp*), you should be able to scale and rotate it or apply extreme distortions without losing any detail, especially if the layers inside of it are procedurally-generated.

That's why *Autograph* doesn’t cache *Sub-composition* rendering by default. For a better understanding, take a look at the following example:

- Imagine you create a 256×256 composition with a single procedurally-animated circle (*Circle**Generator*) that suddenly pops up.
- In another *Full HD* comp, you instantiate this comp on two layers, using this *Source* as *Sub-comps*.
- Now, you decide to set the *Scale* value of the right layer to 3.0.

By default, *Sub-comp* rasterization is set to *None*. As a result, this scaled-up circle, contained in the composition, is not pixelated at all. That's because all transform information has been passed on to all of the layers inside, and the rendering of these elements has taken the scale into account.\
To know more about *Rasterization*, click [here](https://help.maxon.net/ag/en-us/Content/html/Rasterization.html.md).

*Autograph* can't predict what kind of distortion you will apply to *Sub-comps*. In this example, caching the result to reuse it should rasterize the comp, but to which definition?

- *The original comp size (256×256)*: the layer on the right will be pixelated/blurry because of its 3X scale.
- *The size of the comp multiplied by 3*: but what happens if you change the *Scale* value? The whole cache would be flushed, recomputed, and would take up more and more storage in your cache folder when the scale grows.

Since it is always better to prioritize quality first, it's up to you to define whether a comp should be cached or not. The cache is turned off by default but you can choose to activate it only for compositions that really need it.

In the previous example, it you decide to scale the right layer to 0.5 instead of 3.0, the layer’s filter will accumulate all pixels on a smaller area and the quality of the result will be great. Reducing the size of a *Sub-comp* is never an issue because you have less information after scaling; but, when you scale up, you have to ask *Autograph* for more information.

### Caching bit depth:

![Image: composition_caching_bitdepth.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/composition_caching_bitdepth.jpg)

When caching a comp on storage, you can choose between **three precision levels** for the **bit depth**:

- ***8-bit (Gamma Compressed)***: lighter in terms of storage and fast to read/write
- ***16-bit Float***: half the precision of the bit depth used for all calculations in *Autograph's* engine
- ***32-bit Float***: similar to the bit depth used for all calculations in *Autograph's* engine

A last option allows you to apply *Dithering* to this composition cache. This is extremely useful when using the *8-bit* option to minimize the *Banding* effect.

![Image: composition_caching_dithering.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/composition_caching_dithering.jpg)

## Preview Quantization

![Image: composition_caching_after_quantization.jpg](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/animation/composition_caching_after_quantization.jpg)

Most screens works in 8bpc. The *Cache Previews After Quantization* option is active by default, which indicates that the images contained in the cache will be stored with this bit depth. If you have a screen running on 12bpc or more, unchecking this option will produce a 32bpc cache. This is much heavier to read and therefore requires a more responsive device, especially in terms of storage, and it can offer higher accuracy in this type of colorimetric configuration.

Note that this cache is not reused by the [Render Manager](https://help.maxon.net/ag/en-us/Content/html/Render_manager.html.md), which will produce all of its calculations in 32bpc regardless. Maximum quality will be preserved during the whole process, until final encoding in the bit depth defined by the format and the chosen codec.

> **Note:** Keeping this option enabled will not affect the final quality of your renders. Only the *Viewer* will be affected and in most cases you won't notice any difference if your screen is not specifically designed for high-end color grading tasks. Keeping this option enabled also provides much better performance when reading the cache.
