Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions content/en/upscale.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@ One core of a Ryzen 9 7950X (load about 2), 1280x720 to 1920x1080, milliseconds
| `upscale`, scalar (default build) | 242 (EASU alone 193) |
| `upscale`, `GOEXPERIMENT=simd` (v0.22.0) | 82 (EASU alone 73) |
| `upscale`, `GOEXPERIMENT=simd` (v0.23.0) | 55 (EASU alone 44) |
| `upscale`, `GOEXPERIMENT=simd` (v0.24.0) | 37 (EASU alone 28) |

ffmpeg's figures subtract the source and the pixel conversion. The vector build uses the
portable Go 1.27 `simd` package (AVX2 and AVX-512 on amd64, NEON on arm64); it is chosen at
start-up, so the default build is unchanged. v0.23.0 gathers each source row's taps once
(not once per output pixel), computes the edge analysis once per source pixel and packs
RGBA with vectors. It is still about 20 times slower than ffmpeg's hand-written scaler,
**an open defect**: the scalar gather, the input conversion and the EASU arithmetic take
roughly equal shares of what is left. Today `upscale` suits stills, offline work and small frames, not real-time 1080p.
RGBA with vectors; v0.24.0 gathers with AVX-512 permutes, converts YCbCr inline and hoists
the per-row broadcasts. It is still about 13 times slower than ffmpeg's hand-written scaler,
**an open defect**: FSR weighs 12 taps per pixel with weights that depend on the local edge,
about 17 times the arithmetic of ffmpeg's separable 7-tap lanczos, and the EASU arithmetic,
RCAS and the input conversion take most of what is left. Today `upscale` suits stills, offline work and small frames, not real-time 1080p.

## Reproduce {#reproduce}

Expand Down
Loading