---
title: "Cycles Texture Cache"
description: "Blender 5.2 LTS adds a Cycles texture cache that loads only the image tiles and mipmap resolutions a render actually needs, cutting memory use in texture-heavy scenes."
url: "https://swe.quest/articles/cycles-texture-cache-778aa21fc39107df"
canonical: "https://code.blender.org/2026/05/cycles-texture-cache/"
source: "Blender Developers Blog"
published: "2026-05-01"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 5
tags: ["computer-vision","memory-management","caching","performance"]
---

# Cycles Texture Cache

A post on [Blender Developers Blog](https://swe.quest/sources/blender.md), published 2026-05-01, 5 min read, Deep dive. Original: [https://code.blender.org/2026/05/cycles-texture-cache/](https://code.blender.org/2026/05/cycles-texture-cache/)

## Summary

Blender 5.2 LTS adds a Cycles texture cache that loads only the image tiles and mipmap resolutions a render actually needs, cutting memory use in texture-heavy scenes. It auto-generates tiled, mipmapped .tx files, which can also be produced from the command line with \`blender --command maketx\`. Because GPU threads can't block on disk reads, Cycles accumulates cache misses across its wavefront path tracer, batch-loads the missing tiles and re-executes side-effect-free kernels. Tiles are packed with 2-pixel padding so hardware filtering works, and mip levels are chosen with dual-number ray differentials that are widened on indirect bounces, saving about 30% memory. Eviction follows Cycles' tiled rendering, dropping images unused by the last two render tiles, so memory stays roughly constant at 4K–16K resolutions.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- path tracing basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- mipmapping
- GPU kernel execution model ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

Blender, Cycles, OpenImageIO, maketx, Open Shading Language, OptiX, ray differentials

## Related posts

- [Run FLUX.1-dev three times faster](https://swe.quest/articles/run-flux-1-dev-three-times-faster-ae60b80e0a362206.md): Modal · 2025-06-18 · Medium · 9 min read · Inference & serving, Performance engineering, Python, Computer vision, Serverless
  FLUX.1-dev image generation on Modal drops from ~6.75s to under three seconds per 1024x1024 image.
- [Memory snapshots: Checkpoint/restore for sub-second startup](https://swe.quest/articles/memory-snapshots-checkpoint-restore-for-sub-second-startup-543b0ee4c645204a.md): Modal · 2025-01-28 · Medium · 9 min read · Serverless, Containers, Sandboxing & isolation, Performance engineering, Linux
  Modal cuts serverless container cold starts roughly 2.5x by checkpointing a gVisor container's full process tree and filesystem mutations just before it accepts a request, then restoring it instead of re-running Python's syscall-heavy import path (import torch alone makes 26,000 syscalls through OverlayFS and a FUSE lazy-loading server).
- [How did we build 3D animations in mobile apps?](https://swe.quest/articles/how-did-we-build-3d-animations-in-mobile-apps-a24b8209662d76ad.md): Wise Engineering · 2025-01-29 · Medium · 4 min read · Mobile, Performance engineering, JavaScript
  Wise renders its brand 3D illustrations interactively in its iOS and Android apps by building three.js/WebGL scenes as standalone local HTML files shown in web views, which it chose over native or Filament for cross-platform reuse and documentation, and which hit 60–120 FPS.
- [Improving performance with incremental frame loading](https://swe.quest/articles/improving-performance-with-incremental-frame-loading-2561f28b61e84c3a.md): Figma · 2024-01-23 · Medium · 8 min read · Web performance, Real-time systems, Memory management, Performance engineering, System design
  Figma's prototype player used to load entire documents into memory, causing multi-minute loads and crashes on memory-constrained mobile devices.
- [Speeding up Deployments with Lazy Image Streaming](https://swe.quest/articles/speeding-up-deployments-with-lazy-image-streaming-e38be965e3d7f740.md): Replit · 2023-09-06 · Medium · 8 min read · Containers, Performance engineering, Linux, Deployment, Storage systems
  Replit cut cold-boot times for large Deployment container images from 3-4 minutes to under 30 seconds by lazily streaming images through a FUSE filesystem instead of pulling and unpacking every layer up front.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
