Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lisa Greene
Tales of MajEyal
Commits
ea7951ed
Commit
ea7951ed
authored
4 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
try and force using actual GPUs in dual GPU setups
parent
030e4407
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.c
+6
-0
6 additions, 0 deletions
src/main.c
with
6 additions
and
0 deletions
src/main.c
+
6
−
0
View file @
ea7951ed
...
...
@@ -55,6 +55,12 @@
#define WINDOW_ICON_PATH ("/engines/default/data/gfx/te4-icon.png")
#define JOY_DEADZONE 0.21
#ifdef SELFEXE_WINDOWS
// Force nvidia optimus and amd equivalent to use the real GPU instead of the intel crappy one
__declspec
(
dllexport
)
DWORD
NvOptimusEnablement
=
0x00000001
;
__declspec
(
dllexport
)
int
AmdPowerXpressRequestHighPerformance
=
1
;
#endif
int
start_xpos
=
-
1
,
start_ypos
=
-
1
;
bool
ignore_window_change_pos
=
FALSE
;
char
*
override_home
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment