Enable rendering only the CPU

This commit is contained in:
cmdr2 2024-10-07 12:59:19 +05:30
parent b6ba782c35
commit 5a5d37ba52

View File

@ -268,7 +268,9 @@ def get_env():
env_entries["GIT"] = [f"{dir}/bin/git"]
env_entries["venv_dir"] = ["-"]
if OS_NAME in ("Windows", "Linux") and not has_discrete_graphics_card():
if config.get("render_devices", "auto") == "cpu" or (
OS_NAME in ("Windows", "Linux") and not has_discrete_graphics_card()
):
env_entries["COMMANDLINE_ARGS"][0] += " --always-cpu"
if OS_NAME == "Darwin":