Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Blender Developers Blog 5 min read Deep dive hardMaster

Cycles Texture Cache

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.

Related posts

  • Run FLUX.1-dev three times faster

    Modal mediumAdept

    FLUX.1-dev image generation on Modal drops from ~6.75s to under three seconds per 1024x1024 image. About 1.5x comes from standard optimizations: torch.compile with max-autotune, fused QKV projections and channels-last memory layout. Another 2x comes from First Block Caching (via ParaAttention, based on TEACache), which skips denoising steps whose early-block residual change falls below a threshold. A threshold of 0.12 gave a good quality/speed tradeoff. The tens of minutes of compile time added to cold starts were cut roughly 30x by persisting Inductor, Triton and CUDA caches on a volume and using Modal memory snapshots.

  • Memory snapshots: Checkpoint/restore for sub-second startup

    Modal mediumAdept

    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). Restore speed depends mostly on getting the main process's memory pages into the page cache. gVisor loads pages in the background, prioritizing faulting pages, while the FUSE layer aggressively preloads the pages file. Snapshots are created on demand per worker because of CPU feature, NVIDIA driver and runtime compatibility. GPU state can't be saved, so models are loaded into CPU RAM before the snapshot and moved to the GPU after restore via snap=True/snap=False lifecycle hooks.

  • How did we build 3D animations in mobile apps?

    Wise Engineering mediumAdept

    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. An automated pipeline cut the assets from 324 MB to 3.7 MB in three steps: deduplicating textures shared across glTF files (to 98.4 MB), compressing textures (to 5.2 MB) and Draco geometry compression (to 3.7 MB). Draco decompression made scenes slow to load, so the apps pre-load scenes and keep them in memory with rendering paused. Native gyroscope data is passed into the HTML to drive scene rotation.

  • Improving performance with incremental frame loading

    Figma mediumAdept

    Figma's prototype player used to load entire documents into memory, causing multi-minute loads and crashes on memory-constrained mobile devices. Incremental frame loading now fetches only the current screen and its directly reachable neighbors, built on a subscription protocol (query/reply/changes messages) that syncs subtrees of the document in real time, transitively subscribes to dependencies like components, styles and variables, and evicts unsubscribed nodes so nothing goes stale. Desktop clients keep loading remaining screens in the background while mobile clients load on navigation and evict old screens. Main-thread lockups were reduced by chunking loads and skipping layout and boolean computation for screens that aren't visible.

  • Speeding up Deployments with Lazy Image Streaming

    Replit mediumAdept

    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. They compared the eStargz snapshotter, which requires converting images to a per-file-compressed seekable format with worse compression ratios, against AWS's SOCI snapshotter. SOCI stores separate zTOC metadata with gzip decompressor checkpoints, so existing OCI images can be range-fetched without modification, and Replit chose it. The main tradeoff is slower runtime filesystem access because every FUSE operation crosses between user space and kernel space several times.

The quest for software engineering knowledge.

Look:
Layout: