(09-21-2022, 10:50 AM)iwubcode Wrote: [ -> ]I'd like to provide a way to know when a FMV occurs and then dump it as say a video or something that is more intuitive and can be replaced. However, it's no more than an idea at this point. Auto detection is a challenge. I've considered providing manual cues on a game-by-game basis but it's not ideal.
As an aside, another user has requested a way to skip any textures in general (for dynamic textures). See issue 12905. I might implement that at some point but it's not available now. The feature, like the manual FMV detection, seems unfortunate to me and dynamic textures outside FMV are rather rare.
Not that I'm aware of. Honestly, if we could detect it easily we would have already added an option.
I personally am not a fan of these kinds of solutions as it doesn't give back to the community (though upscaled textures are a legal grey area). However, this idea has been done before, see: https://github.com/WalkerMx/AutoCrispy
I got into making this batch after I realized AutoCrispy has some limitations on features and performance, and I couldn't contact the author for some suggestions:
1. AutoCrispy can't run waifu2x-caffe.exe on FOLDERS, only on individual files, and that's a HUGE performance penalty for waifu2x-caffe.exe.
2. AutoCrispy isn't a set-and-forget solution, you need to configure the input and output paths everytime you change the game.
3. AutoCrispy can't output intermediary 2x textures to emulator folder when you chain, say, 2x then 2x again (it gets ONE file, scales 2x, doesn't output it, then it scales 2x again, and only then you get the output).
4. AutoCrispy can't send hotkeys for toggling external textures on and off or reload external textures to the emulator.
I addressed all of those with a few batches. You can copy my launcher batch for each emu, set that emu's configurations (executable, paths, hotkeys), then forget it forever. Launch the emu with the batch, and it will work with any game you play in it.
It will:
1. move the dumped textures to a temp folder (I STRONGLY recommed you set the temp folder to a RAM drive with a good size);
2. junction the dump folder to the temp folder (which causes the dumped textures to be saved directly to RAM drive);
3. separate XX textures to be processed at the same time (I'm using 32 now, but 64 gives good results too);
4. upscale the textures to 2x (in RAM drive) and copy them to emu folder (so you can see the 2x textures faster ingame);
5. send the "reload" or the "toggle" hotkey to the emu window to refresh the textures ingame;
6. upscale the 2x textures to 4x (in RAM drive) and move them to emu folder;
7. refresh the textures again;
8. start it all over again.
Since it's just a batch, you can easily edit it for any backend you want, not only waifu2x-caffe.exe. I will try the ESRGAN backends later.
I started making those with PCSX2, but having Dolphin in mind. I had to adapt a few things for Dolphin, and it's working, although the hotkey part didn't work when I tested it. Will check it soon.
Talking about "giving back to the community", here it goes:
[
attachment=20210]
Try with PCSX2 and games like God of War, Shadow of the Colossus, Genji, Klonoa 2 (set the "Toggle External Textures" hotkey to 0 (the zero key) and the "Reload Textures" hotkey to 9 (the nine key)).... DON'T TRY WITH GAMES WITH WEIRD DYNAMIC/PROCEDURAL TEXTURES LIKE TALES OF LEGENDIA, these produce infinite textures while you play, and the batch will keep upscaling these random textures until your PC melts. I will try to detect those weird textures and delete them instead of upscale them in the future.
For Dolphin, I only tried Super Mario Sunshine so far. And it has the weird textures problem. So it's not a good start, I will try to fix this soon.