summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd
diff options
context:
space:
mode:
authorGravatar bunnei2018-08-22 01:19:50 -0400
committerGravatar GitHub2018-08-22 01:19:50 -0400
commitcea627b0fc109ee27b3d0cabd8f803c8c2c2ac8b (patch)
tree0fd784bbd8788158b88a0ee3125278b8f5e79e4c /src/yuzu_cmd
parentMerge pull request #1154 from OatmealDome/topology-lines (diff)
parentPort #3353 from Citra (diff)
downloadyuzu-cea627b0fc109ee27b3d0cabd8f803c8c2c2ac8b.tar.gz
yuzu-cea627b0fc109ee27b3d0cabd8f803c8c2c2ac8b.tar.xz
yuzu-cea627b0fc109ee27b3d0cabd8f803c8c2c2ac8b.zip
Merge pull request #840 from FearlessTobi/port-3353
Port #3353 from Citra: "citra-qt: Add customizable speed limit target "
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r--src/yuzu_cmd/config.cpp5
-rw-r--r--src/yuzu_cmd/default_ini.h12
2 files changed, 11 insertions, 6 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp
index 9bf26717f..a95580152 100644
--- a/src/yuzu_cmd/config.cpp
+++ b/src/yuzu_cmd/config.cpp
@@ -96,8 +96,9 @@ void Config::ReadValues() {
96 // Renderer 96 // Renderer
97 Settings::values.resolution_factor = 97 Settings::values.resolution_factor =
98 (float)sdl2_config->GetReal("Renderer", "resolution_factor", 1.0); 98 (float)sdl2_config->GetReal("Renderer", "resolution_factor", 1.0);
99 Settings::values.toggle_framelimit = 99 Settings::values.use_frame_limit = sdl2_config->GetBoolean("Renderer", "use_frame_limit", true);
100 sdl2_config->GetBoolean("Renderer", "toggle_framelimit", true); 100 Settings::values.frame_limit =
101 static_cast<u16>(sdl2_config->GetInteger("Renderer", "frame_limit", 100));
101 Settings::values.use_accurate_framebuffers = 102 Settings::values.use_accurate_framebuffers =
102 sdl2_config->GetBoolean("Renderer", "use_accurate_framebuffers", false); 103 sdl2_config->GetBoolean("Renderer", "use_accurate_framebuffers", false);
103 104
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
index 9a935a0d5..6ed9e7962 100644
--- a/src/yuzu_cmd/default_ini.h
+++ b/src/yuzu_cmd/default_ini.h
@@ -102,6 +102,14 @@ resolution_factor =
102# 0 (default): Off, 1: On 102# 0 (default): Off, 1: On
103use_vsync = 103use_vsync =
104 104
105# Turns on the frame limiter, which will limit frames output to the target game speed
106# 0: Off, 1: On (default)
107use_frame_limit =
108
109# Limits the speed of the game to run no faster than this value as a percentage of target speed
110# 1 - 9999: Speed limit as a percentage of target game speed. 100 (default)
111frame_limit =
112
105# Whether to use accurate framebuffers 113# Whether to use accurate framebuffers
106# 0 (default): Off (fast), 1 : On (slow) 114# 0 (default): Off (fast), 1 : On (slow)
107use_accurate_framebuffers = 115use_accurate_framebuffers =
@@ -132,10 +140,6 @@ custom_bottom_top =
132custom_bottom_right = 140custom_bottom_right =
133custom_bottom_bottom = 141custom_bottom_bottom =
134 142
135# Whether to toggle frame limiter on or off.
136# 0: Off, 1 (default): On
137toggle_framelimit =
138
139# Swaps the prominent screen with the other screen. 143# Swaps the prominent screen with the other screen.
140# For example, if Single Screen is chosen, setting this to 1 will display the bottom screen instead of the top screen. 144# For example, if Single Screen is chosen, setting this to 1 will display the bottom screen instead of the top screen.
141# 0 (default): Top Screen is prominent, 1: Bottom Screen is prominent 145# 0 (default): Top Screen is prominent, 1: Bottom Screen is prominent