RetroArch
switch_performance_profiles.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2018-2018 - Natinusala
3  * Copyright (C) 2018-2018 - M4xw
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __SWITCH_PERFORMANCE_PROFILES_H
18 #define __SWITCH_PERFORMANCE_PROFILES_H
19 
20 #if defined(HAVE_LAKKA_SWITCH) || defined(HAVE_LIBNX)
21 #ifdef HAVE_LAKKA_SWITCH
22 static char *SWITCH_GPU_PROFILES[] = {
23  "docked-overclock-3",
24  "docked-overclock-2",
25  "docked-overclock-1",
26  "docked",
27  "non-docked-overclock-5",
28  "non-docked-overclock-4",
29  "non-docked-overclock-3",
30  "non-docked-overclock-2",
31  "non-docked-overclock-1",
32  "non-docked",
33  "non-docked-underclock-1",
34  "non-docked-underclock-2",
35  "non-docked-underclock-3",
36 };
37 
38 static char *SWITCH_GPU_SPEEDS[] = {
39  "998 Mhz",
40  "921 Mhz",
41  "844 Mhz",
42  "768 Mhz",
43  "691 Mhz",
44  "614 Mhz",
45  "537 Mhz",
46  "460 Mhz",
47  "384 Mhz",
48  "307 Mhz",
49  "230 Mhz",
50  "153 Mhz",
51  "76 Mhz"};
52 
53 static int SWITCH_BRIGHTNESS[] = {
54  10,
55  20,
56  30,
57  40,
58  50,
59  60,
60  70,
61  80,
62  90,
63  100};
64 #endif
65 
66 static char *SWITCH_CPU_PROFILES[] = {
67 #ifndef HAVE_LIBNX
68  "overclock-4",
69  "overclock-3",
70  "overclock-2",
71  "overclock-1",
72  "default",
73 #else
74  "Maximum Performance",
75  "High Performance",
76  "Boost Performance",
77  "Stock Performance",
78  "Powersaving Mode 1",
79  "Powersaving Mode 2",
80  "Powersaving Mode 3",
81 #endif
82 };
83 
84 #define SWITCH_DEFAULT_CPU_PROFILE 3 /* Stock Performance */
85 #define LIBNX_MAX_CPU_PROFILE 0 /* Max Performance */
86 
87 static char *SWITCH_CPU_SPEEDS[] = {
88 #ifndef HAVE_LIBNX
89  "1912 MHz",
90  "1734 MHz",
91  "1530 MHz",
92  "1224 MHz",
93  "1020 MHz"
94 #else
95  "1785 MHz",
96  "1581 MHz",
97  "1224 MHz",
98  "1020 MHz",
99  "918 MHz",
100  "816 MHz",
101  "714 MHz"
102 #endif
103 };
104 
105 static unsigned SWITCH_CPU_SPEEDS_VALUES[] = {
106 #ifndef HAVE_LIBNX
107  1912000000,
108  1734000000,
109  1530000000,
110  1224000000,
111  1020000000
112 #else
113  1785000000,
114  1581000000,
115  1224000000,
116  1020000000,
117  918000000,
118  816000000,
119  714000000
120 #endif
121 };
122 
123 #endif
124 
125 #endif