Skip to content

Instantly share code, notes, and snippets.

@GarnetSunset
Last active April 11, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarnetSunset/b0fedd52a59dfaa3cf46c2dc7cd4d455 to your computer and use it in GitHub Desktop.
Save GarnetSunset/b0fedd52a59dfaa3cf46c2dc7cd4d455 to your computer and use it in GitHub Desktop.
vulkanUpdate
registryFront = "Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers]\n\"C:\\\\Windows\\\\System32\\\\DriverStore\\\\FileRepository\\\\"
registryEnd = "\\\\nv-vk64.json\"=dword:00000000\n\n"
import os, time
cwd = os.getcwd()
os.chdir("C:/Windows/System32/DriverStore/FileRepository")
all_subdirs = [d for d in os.listdir('.') if os.path.isdir(d) and "nv_dispi.inf_amd64_" in d ]
latest_subdir = max(all_subdirs, key=os.path.getmtime)
os.chdir(cwd)
regFile = open("vulkanUpdate.reg", "w")
regFile.write(registryFront+latest_subdir+registryEnd)
regFile.close()
print("Double click \"vulkanUpdate.reg\" to install the registry key")
time.sleep(5)
@Azure-Agst
Copy link

thank you garnet, very cool!

@GarnetSunset
Copy link
Author

love u

@Weskerbossezi
Copy link

where do I put this ?

@GarnetSunset
Copy link
Author

anywhere

@Weskerbossezi
Copy link

Can you tell me is there any fix for the games to stop random crash every 2 mins of gameplay?
I can't play ninja gaiden 2 rpcs3

@GarnetSunset
Copy link
Author

I don't make rpcs3 my dude

@adrianwx2099
Copy link

I don't understand how this is used? The only thing I know is that I have the vulkan api error in rpcs3 in the games.

@AndreaFranco22
Copy link

I know i'm late but i tried to run it and it didn't work, i used IDLE shell to see what the problem was and this was the result

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

= RESTART: C:\Users\Andrea\Desktop\b0fedd52a59dfaa3cf46c2dc7cd4d455-3dd272d372070f8acd4415f952d4eabde9b702a7\b0fedd52a59dfaa3cf46c2dc7cd4d455-3dd272d372070f8acd4415f952d4eabde9b702a7\vulkanUpdate.py
Traceback (most recent call last):
File "C:\Users\Andrea\Desktop\b0fedd52a59dfaa3cf46c2dc7cd4d455-3dd272d372070f8acd4415f952d4eabde9b702a7\b0fedd52a59dfaa3cf46c2dc7cd4d455-3dd272d372070f8acd4415f952d4eabde9b702a7\vulkanUpdate.py", line 11, in
latest_subdir = max(all_subdirs, key=os.path.getmtime)
ValueError: max() arg is an empty sequence

do you know what i can do to make vulkan work? I really wanted to play DeS but openGL doesn't work at all and i'm not able to get vulkan to run

@AndreaFranco22
Copy link

Cattura
thisis what happens when i open vulkaninfo

@GarnetSunset
Copy link
Author

GarnetSunset commented Apr 11, 2020 via email

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