Add a Quality upscaling tier and make enhancement verifiable
Quality runs ArtCNN C4F32 (its denoising model when Denoising is on), KrigBilateral, debanding and CAS. Its network runs at any enlargement, so 1080p in a maximized 1440p window is doubled and scaled down; Balanced keeps FSRCNNX's 1.3x threshold. The enhancement pipeline moves to player/enhance.ts. Mode changes are serialized (latest wins). Shader errors in mpv's log, or network passes missing from vo-passes, drop to the tier below with a notice, and the chosen and running tiers are shown separately. HDR is judged from the decoded video. Debanding, sharpening and denoising have their own toggles, B compares with enhancement off, and the panel shows the renderer's actual stages, GPU time and dropped frames. Compiled shaders persist in the app cache (gpu-shader-cache-dir): ArtCNN's first Direct3D compile takes about a minute, which the player now announces, and later launches start immediately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5efcf2c5a5
commit
9fd2b0603e
11 changed files with 8400 additions and 68 deletions
3930
src-tauri/shaders/ArtCNN_C4F32.glsl
Normal file
3930
src-tauri/shaders/ArtCNN_C4F32.glsl
Normal file
File diff suppressed because it is too large
Load diff
3930
src-tauri/shaders/ArtCNN_C4F32_DN.glsl
Normal file
3930
src-tauri/shaders/ArtCNN_C4F32_DN.glsl
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -91,6 +91,14 @@ fn create_player<R: Runtime>(app: &AppHandle<R>, window: &WebviewWindow<R>, opts
|
|||
set("hr-seek", "yes")?;
|
||||
set("background-color", "#000000")?;
|
||||
set("user-agent", "Kaleido")?;
|
||||
// Keep compiled shaders between runs: translating the larger upscaling
|
||||
// shaders for Direct3D can take seconds, and should only happen once.
|
||||
if let Ok(dir) = app.path().app_cache_dir() {
|
||||
let dir = dir.join("shader-cache");
|
||||
if std::fs::create_dir_all(&dir).is_ok() {
|
||||
let _ = set("gpu-shader-cache-dir", &dir.to_string_lossy());
|
||||
}
|
||||
}
|
||||
if opts.hdr.unwrap_or(true) {
|
||||
let _ = set("target-colorspace-hint", "yes");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue