Last active
April 11, 2020 13:33
-
-
Save GarnetSunset/b0fedd52a59dfaa3cf46c2dc7cd4d455 to your computer and use it in GitHub Desktop.
vulkanUpdate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Reinstall your drivers mate
I don't fix drivers sorry
…On Sat, Apr 11, 2020 at 9:01 AM AndreaFranco22 ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
[image: Cattura]
<https://user-images.githubusercontent.com/63497354/79044410-4c007300-7c05-11ea-8ef7-e25e162a44fd.PNG>
thisis what happens when i open vulkaninfo
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/b0fedd52a59dfaa3cf46c2dc7cd4d455#gistcomment-3250056>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGO5IXEJDFPWJO2QT7WVGTRMBS4JANCNFSM4IJFPODQ>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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