summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_disassembler.cpp
diff options
context:
space:
mode:
authorAitor Guevara <428243+aitorciki@users.noreply.github.com>2023-09-02 16:22:07 +0200
committerAitor Guevara <428243+aitorciki@users.noreply.github.com>2023-09-22 20:51:12 +0200
commit6263774aecbe6c8ace972f1bd82220b463cb33f0 (patch)
treedb595d5421897a58b6f433d4b0189d29a784baa5 /modules/gdscript/gdscript_disassembler.cpp
parentfe5b1c8d49313d63fbe91cb7cdf463e10fb86afa (diff)
downloadredot-engine-6263774aecbe6c8ace972f1bd82220b463cb33f0.tar.gz
[Windows] Fix not applying NVIDIA profile to new executables
An NVIDIA profile is applied to the current executable to disable threaded OpenGL optimizations on Windows (see #71472). But because the application is only added to the profile upon the profile creation, newer executables won't be added to the profile (e.g. if the profile is created on first launch of Godot_v4.1-stable_win64.exe, when users update the editor and launch Godot_v4.2-stable_win64.exe, the profile will never be applied to this new executable). This patch fixes that scenario by splitting creating the profile (if it doesn't exist) and adding the application (if it doesn't have a profile applied) into two separate steps. Applications that have been manually added to a different profile aren't overriden to avoid confusing users who know what they're doing.
Diffstat (limited to 'modules/gdscript/gdscript_disassembler.cpp')
0 files changed, 0 insertions, 0 deletions