mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Windows: Make Direct3D 12 the default RD driver for new projects
For compatibility reasons, `vulkan` is kept as the technical default for the setting, but projects created in Godot 4.6 and later will set `d3d12` as the driver automatically. Users upgrading to 4.6 are recommended to adopt `d3d12` as a default if it fits their needs. Enable `d3d12=yes` by default in SCons so that custom Windows builds include Direct3D 12 support.
This commit is contained in:
parent
3a97723ff2
commit
b87fcf7e79
3 changed files with 6 additions and 2 deletions
|
|
@ -233,6 +233,7 @@ def get_flags():
|
|||
|
||||
return {
|
||||
"arch": arch,
|
||||
"d3d12": True,
|
||||
"supported": ["d3d12", "dcomp", "library", "mono", "xaudio2"],
|
||||
}
|
||||
|
||||
|
|
@ -923,7 +924,8 @@ def check_d3d12_installed(env, suffix):
|
|||
print_error(
|
||||
"The Direct3D 12 rendering driver requires dependencies to be installed.\n"
|
||||
"You can install them by running `python misc\\scripts\\install_d3d12_sdk_windows.py`.\n"
|
||||
"See the documentation for more information:\n\t"
|
||||
"https://docs.godotengine.org/en/latest/engine_details/development/compiling/compiling_for_windows.html"
|
||||
"See the documentation for more information:\n"
|
||||
"\thttps://docs.godotengine.org/en/latest/engine_details/development/compiling/compiling_for_windows.html\n"
|
||||
"Alternatively, disable this driver by compiling with `d3d12=no` explicitly."
|
||||
)
|
||||
sys.exit(255)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue