Skip to content

hookdial v0.1.2

Latest

Choose a tag to compare

@jdotcollins jdotcollins released this 02 Dec 02:37
· 3 commits to main since this release
a2d33e7

Switch shaders from the menu, without input.conf bindings.

Install or upgrade: unzip hookdial-v0.1.2.zip into mpv's scripts folder, replacing the old scripts/hookdial. It needs mpv 0.39 or newer.

New

  • Shader picker. In the Alt+h menu, c changes the selected row's shader to another from your shaders folder, a adds one after the others, and x removes the selected row's shader. The list shows ~~/shaders (the shader_dir option) and one level of subfolders, so packs like Anime4K show up; type to filter, and shaders already loaded are marked. To switch without opening the menu, bind script-binding hookdial/pick in input.conf (for example Alt+p script-binding hookdial/pick): the shader you pick replaces all loaded shaders, and "(no shader)" turns them off. See "Switching shaders" in the manual.
  • For other scripts: each #define in user-data/hookdial/shaders now has a type, "int" or "float" (api.md). The change is additive; api_version stays 1.

For contributors

  • tests/tools/cost.lua measures each shader's GPU cost from mpv's own pass timers.
  • The census tool now reports shaders whose passes never ran as notrun instead of counting them as loaded, and documents how to check prescalers on an enlarged video.

Full list of changes: #19, #21, #22.