You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,12 @@ the NVIDIA GL shader cache for CEMU on a PER-GAME basis.
5
5
6
6
The script has been wrapped as an exe using PS2EXE-GUI.
7
7
8
+
# Requirements
9
+
10
+
- Cemu
11
+
- Cemu hook (recommended)
12
+
- Only tested on Windows 10
13
+
8
14
# What it fixes
9
15
10
16
Primarily, micro-stutters. NVIDIA caches GL shaders in a file on your PC as they are invoked during the course of gameplay in CEMU. These are based on the recompiled shader caches that CEMU creates when it loads a game, but crucially NVIDIA does not cache these at the time CEMU loads the game, but rather as they are invoked during gameplay. This can result in micro-stutters as new shaders are encountered. The problem is, NVIDIA invalidates / deletes these caches on occasion, which means the next time you play the same game the shader might not be cached and thus the stuttering.
@@ -19,15 +25,19 @@ Quite simply, before launching a specific game in CEMU, this script tries to res
19
25
20
26
So effectively this script maintains a per-game GL shader cache backup.
21
27
22
-
> If you were previously setting the `Precompiled shader cache` setting in Cemuhook to `Disabled/ignored` to fix stuttering, you should try setting it back to `Enabled` when using GLCache backups.
28
+
>When running a game for the first time, this script will use the Cemu hook .ini file to force a re-compile of the shader cache. This is necessary to get a good clean GLCache to make a backup from.
29
+
>
30
+
>When you exit Cemu after the first run of the game, the backup will be taken and the setting will be reverted to enable the precompiled shader cache again.
31
+
>
32
+
>WARNING: If you make any changes to Cemu hook config on the first run and this script has forced the re-compile, the settings you changed will be reverted when you exit Cemu.
23
33
24
34
# Setup
25
35
26
36
1) Place this script/exe *and* 'Cemu_withGLCacheBackup.xml' in the same directory as Cemu.exe.
27
37
28
38
2) Edit 'Cemu_withGLCacheBackup.xml' and set the NVIDIA GL cache path and ID appropriately.
29
39
30
-
3)Create shortcuts for each game you want to run.
40
+
3)For each CEMU game you play create a Windows and/or Steam shortcut
31
41
32
42
# Cemu_withGLCacheBackup.xml
33
43
@@ -136,18 +146,11 @@ If you use this option, you'll get prompted before restoring and saving backups.
136
146
This flag will make the script not actually restore or backup the cache files. Useful if you just want to test your config and see the size of the shader caches.
137
147
```
138
148
139
-
# How do I know if it's working?
149
+
# Troubleshooting
140
150
141
-
Once you've configured everything correctly and backups are being taken, you can do this simple test:
151
+
- Check the `GLCacheBackup` directory in your Cemu install dir to verify that backups are being created.
142
152
143
-
1. Run a game using this script and play a section you can easily replay
144
-
2. Exit CEMU
145
-
3. Find the GLCache backup for your game (by default, in the `GLCacheBackup` folder within the CEMU install directory)
146
-
4. Rename the `GLCacheBackup` folder to `GLCacheBackup_off`
147
-
5. Re-launch the game and play the same section, do you get stutters?
148
-
6. Exit CEMU
149
-
7. Delete the new `GLCacheBackup` folder that got created and rename `GLCacheBackup_off` back to `GLCacheBackup`
150
-
8. Re-launch the game and play the same section - there should be less micro-stuttering
153
+
- Check the `Cemu_withGLCacheBackup.log.txt` file to look for errors or warnings.
0 commit comments