Repository navigation
Resource usage comparison
mesh2gltf moves geometry off the heap to a memory-mapped disk workspace. That tradeoff matters most when a mesh's working data would consume too much RAM in an importer that retains it in memory. Existing PNG/JPEG textures can also be transferred without decoding all their pixels. Image conversion has a different memory cost; see Images.
The examples below illustrate those tradeoffs against obj2gltf and Blender. They are four synthetic workloads on one workstation, with one recorded run per configuration. They are not a neutral benchmark or a general speed ranking.
Each OBJ is a connected triangle grid in one object, with explicit normals. The two texture cases have the same total image pixel count. Solid-color PNGs keep the input files small while exercising large decoded dimensions.
| Sample | Source positions / triangles | Textures | OBJ size |
|---|---|---|---|
| Small, untextured | 10,000 / 19,602 | None | 0.57 MiB |
| Large, untextured | 10,000,000 / 19,987,002 | None | 787 MiB |
| One large texture | 99,856 / 198,450 | One 16k × 16k PNG | 11.7 MiB |
| Several large textures | 99,856 / 198,450 | Four 8k × 8k PNGs, four materials | 11.7 MiB |
They do not represent complex scans, UV seams, many-object scenes or expensive triangulation.
Each completed run writes glTF JSON, an external geometry buffer and external images. Cells show peak process RSS / elapsed time, rounded deliberately.
| Sample | mesh2gltf | obj2gltf 3.2.0 | Blender 5.2.1 |
|---|---|---|---|
| Small, untextured | 12 MiB / ~0.1 s | 147 MiB / 1.0 s | 364 MiB / 2.9 s |
| Large, untextured | 500 MiB / 22 s | 1.7 GiB / 63 s | Stopped at the 8 GiB RSS guard |
| One large texture | 12 MiB / 0.3 s | 195 MiB / 1.2 s | 1.5 GiB / 5.6 s |
| Several large textures | 12 MiB / 0.7 s | 189 MiB / 2.4 s | 1.5 GiB / 11 s |
For the texture cases, mesh2gltf and obj2gltf kept their existing PNGs without a forced re-encode in these runs; Blender's path used substantially more memory. This does not predict the result when mesh2gltf must decode and convert an image.
Measured on 20 October 2026, on Linux with a four-core Intel Core i5-4590, 32 GiB of RAM and the workspace on a SATA SSD (Btrfs, zstd compression). The untextured cases were measured again on 17 November 2026 with the same results within timing noise. Each tool ran once per sample, sequentially, with default export settings and no tuning for memory; output triangle counts were checked against the source.
Peak RSS is sampled every 100 ms, so sub-100-ms runs show as about 0.1 s. mesh2gltf's RSS includes memory-mapped workspace pages, which the kernel can evict: it is not its minimum RAM requirement. Runs were stopped above 8 GiB of RSS or after 600 s; a stopped run says nothing about whether the tool would finish with more memory.