Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
fafd42ec
Commit
fafd42ec
authored
Nov 04, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __GL_THREADED_OPTIMIZATIONS for nvidia gamescope
parent
feedb9b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
functions_helper
data_from_portwine/scripts/functions_helper
+8
-3
No files found.
data_from_portwine/scripts/functions_helper
View file @
fafd42ec
...
...
@@ -3820,7 +3820,8 @@ start_portwine () {
fi
fi
# GAMESCOPE enable:
unset
PW_GAMESCOPE_ARGS_NEW PW_GAMESCOPE_VARIABLES_BEFORE PW_GAMESCOPE_VARIABLES_AFTER
# GAMESCOPE fixes:
if
[[
"
${
PW_GAMESCOPE
}
"
==
"1"
&&
"
${
GAMESCOPE_INSTALLED
}
"
==
"1"
]]
\
||
check_gamescope_session
then
...
...
@@ -3836,7 +3837,12 @@ start_portwine () {
if
[[
-d
/sys/bus/pci/drivers/i915
]]
;
then
export
INTEL_DEBUG
=
"norbc"
fi
if
[[
-d
/sys/bus/pci/drivers/nvidia
]]
;
then
PW_GAMESCOPE_VARIABLES_BEFORE+
=
"__GL_THREADED_OPTIMIZATIONS=0 "
PW_GAMESCOPE_VARIABLES_AFTER+
=
"__GL_THREADED_OPTIMIZATIONS=1 "
fi
fi
# GAMESCOPE enable:
if
[[
"
${
PW_GAMESCOPE
}
"
==
"1"
&&
"
${
GAMESCOPE_INSTALLED
}
"
==
"1"
]]
\
&&
!
check_gamescope_session
then
...
...
@@ -3849,7 +3855,6 @@ start_portwine () {
fi
#checkbox
unset
PW_GAMESCOPE_ARGS_NEW
[[
"
${
PW_GS_FULLSCREEN
}
"
==
"1"
]]
&&
PW_GAMESCOPE_ARGS_NEW+
=
" -f"
[[
"
${
PW_GS_FORCE_FULLSCREEN
}
"
==
"1"
]]
&&
PW_GAMESCOPE_ARGS_NEW+
=
" --force-windows-fullscreen"
[[
"
${
PW_GS_BORDERLESS_WINDOW
}
"
==
"1"
]]
&&
PW_GAMESCOPE_ARGS_NEW+
=
" -b"
...
...
@@ -3922,7 +3927,7 @@ start_portwine () {
[[
"
${
PW_GS_ITM_TARGET_NITS
}
"
!=
"0"
]]
&&
PW_GAMESCOPE_ARGS_NEW+
=
" --hdr-itm-target-nits
${
PW_GS_ITM_TARGET_NITS
}
"
edit_db_from_gui PW_GAMESCOPE_ARGS_NEW
export
PW_RUN_GAMESCOPE
=
"
gamescope
${
PW_ID_VIDEO
}${
PW_GAMESCOPE_ARGS_NEW
}
--
"
export
PW_RUN_GAMESCOPE
=
"
${
PW_GAMESCOPE_VARIABLES_BEFORE
}
gamescope
${
PW_ID_VIDEO
}${
PW_GAMESCOPE_ARGS_NEW
}
env
${
PW_GAMESCOPE_VARIABLES_AFTER
}
"
fi
pw_mangohud_check
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment