Skip to content

Instantly share code, notes, and snippets.

@dvessel
Last active November 23, 2022 21:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvessel/a046f9944c4050f2ce841a8e445128ac to your computer and use it in GitHub Desktop.
Save dvessel/a046f9944c4050f2ce841a8e445128ac to your computer and use it in GitHub Desktop.
Throw it into a bin path, cd into it and `chmod +x link-loaded-textures`.
@dvessel
Copy link
Author

dvessel commented May 17, 2022

The above script will generate symbolic links to your desktop of all the upscaled texture reads while running Dolphin. This is to aid in narrowing down which textures are being used at a given moment.

It runs under sudo as it’s required for fs_usage and it’s MacOS specific. You should be able to adapt this with something like DTrace on other OS’s.

Options:

Duration of the sample in seconds. 10 is the default.
link-loaded-textures --timeout 10

Output location. Defaults to ~/Desktop/Texture\ Loads.tmp/date "+%m.%d,%H.%M.%S"
link-loaded-textures --output “path/to/linked/results”

Path to compare with. Just for reference.
link-loaded-textures --compare-path “path/to/textures”

Shows the output with QuickLook.
link-loaded-textures --quicklook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment