summaryrefslogtreecommitdiffstats
path: root/src/common/settings.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-27dynarmic: Inline exclusive memory accessesmerry1-0/+1
Inlines implementation of exclusive instructions into JITted code, improving performance of applications relying heavily on these instructions. We also fastmem these instructions for additional speed, with support for appropriate recompilation on fastmem failure. An unsafe optimization to disable the intercore global_monitor is also provided, should one wish to rely solely on cmpxchg semantics for safety. See also: merryhime/dynarmic#664
2022-02-21settings: Add a new "use_extended_memory_layout" setting.bunnei1-0/+1
- This will be used to enable emulation of a larger memory arrangement.
2021-11-21configure_general: Allow framerate cap to be used in custom game configsKewlan1-0/+1
2021-11-16Settings: Add anti-aliasing method settingMarshall Mohror1-0/+1
2021-11-16VideoCore: Add more rescaling option.FernandoS271-0/+13
2021-11-16Texture Cahe: Fix downscaling on SMO.Fernando Sahmkow1-0/+2
2021-11-16video_core: Misc resolution scaling related refactoringameerj1-1/+1
2021-11-16Renderer: Implement Bicubic and ScaleForce filters.Fernando Sahmkow1-9/+1
2021-11-16common/settings: Remove unused scaling optionsReinUsesLisp1-16/+7
2021-11-16Settings: eliminate rescaling_factor.Fernando Sahmkow1-1/+1
2021-11-16Settings: Add resolution scaling to settings.Fernando Sahmkow1-0/+51
2021-11-16VideoCore: Initial Setup for the Resolution Scaler.Fernando Sahmkow1-0/+1
2021-09-29settings: Remove BCAT settingsMorph1-2/+0
2021-09-16fix_accidental_deletionMoonlacer1-1/+2
2021-09-16remove-audio-stretching-settingMoonlacer1-4/+1
2021-09-10input_common: Enable steam controllers and 8 player supportgerman771-0/+3
2021-08-28Garbage Collection: enable as default, eliminate option.Fernando Sahmkow1-2/+0
2021-08-16configure_graphics: Add GPU nvdec decoding as an optionameerj1-2/+2
Some system configurations may see visual regressions or lower performance using GPU decoding compared to CPU decoding. This setting provides the option for users to specify their decoding preference. Co-Authored-By: yzct12345 <87620833+yzct12345@users.noreply.github.com>
2021-07-24general: Rename "Frame Limit" references to "Speed Limit"ameerj1-4/+4
This setting is best referred to as a speed limit, as it involves the limits of all timing based aspects of the emulator, not only framerate. This allows us to differentiate it from the fps unlocker setting.
2021-07-23general: Add setting shader_backendlat9nq1-2/+2
GLASM is getting good enough that we can move it out of advanced graphics settings. This removes the setting `use_assembly_shaders`, opting for a enum class `shader_backend`. This comes with the benefits that it is extensible for additional shader backends besides GLSL and GLASM, and this will work better with a QComboBox. Qt removes the related assembly shader setting from the Advanced Graphics section and places it as a new QComboBox in the API Settings group. This will replace the Vulkan device selector when OpenGL is selected. Additionally, mark all of the custom anisotropic filtering settings as "WILL BREAK THINGS", as that is the case with a select few games.
2021-07-09configure_audio: Use u8 for volume valueameerj1-1/+1
2021-07-08settings, arm_dynarmic, yuzu qt: Move CPU debugging optionlat9nq1-1/+1
Decouples the CPU debugging mode from the enumeration to its own boolean. After this, it moves the CPU Debugging tab over to a sub tab underneath the Debug tab in the configuration UI.
2021-06-28general: Make most settings a BasicSettinglat9nq1-8/+8
Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting.
2021-06-20Update dynarmic and add new unsafe CPU option.Fernando Sahmkow1-0/+1
2021-06-16Reaper: Setup settings and final tuning.Fernando Sahmkow1-0/+2
2021-06-16configure_graphics: Add Accelerate ASTC decoding settingameerj1-0/+2
2021-06-11General: Add settings for fastmem and disabling adress space check.FernandoS271-0/+8
2021-05-26common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270)Morph1-6/+10
* common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
2021-05-17general: Demote custom_rtc to regular settinglat9nq1-1/+0
2021-05-16configuration: Add CPU tab to game propertieslat9nq1-0/+6
Allows setting CPU accuracy to Accurate or Unsafe per-game, as well as the accuracy options for Unsafe. Debug is not allowed here as a per-game CPU accuracy.
2021-05-16general: Make CPU accuracy and related a Settings::Settinglat9nq1-1/+1
Required to make CPU accuracy and unsafe settings available to use as a per-game setting.
2021-04-15common: Move settings to common from core.bunnei1-13/+2
- Removes a dependency on core and input_common from common.
2021-02-02settings: Log the cache, config, and mod load directoriesMorph1-0/+3
2020-12-29core: settings: Untangle multicore from asynchronous GPU.bunnei1-5/+0
- Now that GPU is always threaded, we can support multicore with synchronous GPU.
2020-12-19yuzu: Remove gdbstub configurationFearlessTobi1-2/+0
The gdbstub itself was removed with https://github.com/yuzu-emu/yuzu/pull/5028. This PR just removes the remaining gdb configuration code from the emulator and the UI.
2020-11-27core: Eliminate remaining usages of the global system instanceLioncash1-10/+7
Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends.
2020-11-16settings: Remove global vibration strength modifierMorph1-1/+0
This will be replaced in favor of per-player vibration strength modifiers.
2020-11-16configure_input: Hook up the vibration percentage spinboxMorph1-0/+1
This allows setting the vibration strength percentage anywhere from 1% to 100%. Also hooks up the remaining motion button and checkbox in the Controller Applet.
2020-11-16settings: Preparation for per-game input settingsMorph1-1/+7
2020-11-07settings: log value of CPU_Accuracylat9nq1-0/+1
2020-11-04core/settings: Move configuring_global behind an APILioncash1-6/+14
Rather than have directly modified global state here, we can make it an implementation detail and have an interface that changes are queried through.
2020-10-27video_core: NVDEC Implementationameerj1-0/+2
This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>
2020-08-26Project Mjölnir: Part 1Morph1-50/+0
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-16common/fileutil: Convert namespace to Common::FSLioncash1-2/+2
Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
2020-07-28configure_graphics: Remove Force 30 FPS modeMorph1-1/+0
The introduction of multicore rendered this setting non-functional as timing code was changed. This removes the setting entirely.
2020-07-17Drop settings namespaceDavid Marcec1-2/+1
2020-07-17Rebase for per game settingsDavid Marcec1-0/+3
2020-07-15settings: Resolve a sign conversion warning within GetTimeZoneString()Lioncash1-5/+5
A sign conversion warning was occurring due to an int < size_t comparison.
2020-07-15settings: Make use of std::string_view over std::string for loggingLioncash1-33/+34
In all usages of LogSetting(), string literals are provided. std::string_view is better suited here, as we won't churn a bunch of string allocations every time the settings are logged out. While we're at it, we can fold LogSetting() into LogSettings(), given it's only ever used there.
2020-07-14clang-formatlat9nq1-2/+1
2020-07-14settings: Move settings sanitization to its own functionlat9nq1-0/+6
Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables.
2020-07-10configuration: implement per-game configurations (#4098)lat9nq1-21/+63
* Switch game settings to use a pointer In order to add full per-game settings, we need to be able to tell yuzu to switch to using either the global or game configuration. Using a pointer makes it easier to switch. * configuration: add new UI without changing existing funcitonality The new UI also adds General, System, Graphics, Advanced Graphics, and Audio tabs, but as yet they do nothing. This commit keeps yuzu to the same functionality as originally branched. * configuration: Rename files These weren't included in the last commit. Now they are. * configuration: setup global configuration checkbox Global config checkbox now enables/disables the appropriate tabs in the game properties dialog. The use global configuration setting is now saved to the config, defaulting to true. This also addresses some changes requested in the PR. * configuration: swap to per-game config memory for properties dialog Does not set memory going in-game. Swaps to game values when opening the properties dialog, then swaps back when closing it. Uses a `memcpy` to swap. Also implements saving config files, limited to certain groups of configurations so as to not risk setting unsafe configurations. * configuration: change config interfaces to use config-specific pointers When a game is booted, we need to be able to open the configuration dialogs without changing the settings pointer in the game's emualtion. A new pointer specific to just the configuration dialogs can be used to separate changes to just those config dialogs without affecting the emulation. * configuration: boot a game using per-game settings Swaps values where needed to boot a game. * configuration: user correct config during emulation Creates a new pointer specifically for modifying the configuration while emulation is in progress. Both the regular configuration dialog and the game properties dialog now use the pointer Settings::config_values to focus edits to the correct struct. * settings: split Settings::values into two different structs By splitting the settings into two mutually exclusive structs, it becomes easier, as a developer, to determine how to use the Settings structs after per-game configurations is merged. Other benefits include only duplicating the required settings in memory. * settings: move use_docked_mode to Controls group `use_docked_mode` is set in the input settings and cannot be accessed from the system settings. Grouping it with system settings causes it to be saved with per-game settings, which may make transferring configs more difficult later on, especially since docked mode cannot be set from within the game properties dialog. * configuration: Fix the other yuzu executables and a regression In main.cpp, we have to get the title ID before the ROM is loaded, else the renderer will reflect only the global settings and now the user's game specific settings. * settings: use a template to duplicate memory for each setting Replaces the type of each variable in the Settings::Values struct with a new class that allows basic data reading and writing. The new struct Settings::Setting duplicates the data in memory and can manage global overrides per each setting. * configuration: correct add-ons config and swap settings when apropriate Any add-ons interaction happens directly through the global values struct. Swapping bewteen structs now also includes copying the necessary global configs that cannot be changed nor saved in per-game settings. General and System config menus now update based on whether it is viewing the global or per-game settings. * settings: restore old values struct No longer needed with the Settings::Setting class template. * configuration: implement hierarchical game properties dialog This sets the apropriate global or local data in each setting. * clang format * clang format take 2 can the docker container save this? * address comments and style issues * config: read and write settings with global awareness Adds new functions to read and write settings while keeping the global state in focus. Files now generated per-game are much smaller since often they only need address the global state. * settings: restore global state when necessary Upon closing a game or the game properties dialog, we need to restore all global settings to the original global state so that we can properly open the configuration dialog or boot a different game. * configuration: guard setting values incorrectly This disables setting values while a game is running if the setting is overwritten by a per game setting. * config: don't write local settings in the global config Simple guards to prevent writing the wrong settings in the wrong files. * configuration: add comments, assume less, and clang format No longer assumes that a disabled UI element means the global state is turned off, instead opting to directly answer that question. Still however assumes a game is running if it is in that state. * configuration: fix a logic error Should not be negated * restore settings' global state regardless of accept/cancel Fixes loading a properties dialog and causing the global config dialog to show local settings. * fix more logic errors Fixed the frame limit would set the global setting from the game properties dialog. Also strengthened the Settings::Setting member variables and simplified the logic in config reading (ReadSettingGlobal). * fix another logic error In my efforts to guard RestoreGlobalState, I accidentally negated the IsPowered condition. * configure_audio: set toggle_stretched_audio to tristate * fixed custom rtc and rng seed overwriting the global value * clang format * rebased * clang format take 4 * address my own review Basically revert unintended changes * settings: literal instead of casting "No need to cast, use 1U instead" Thanks, Morph! Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> * Revert "settings: literal instead of casting " This reverts commit 95e992a87c898f3e882ffdb415bb0ef9f80f613f. * main: fix status buttons reporting wrong settings after stop emulation * settings: Log UseDockedMode in the Controls group This should have happened when use_docked_mode was moved over to the controls group internally. This just reflects this in the log. * main: load settings if the file has a title id In other words, don't exit if the loader has trouble getting a title id. * use a zero * settings: initalize resolution factor with constructor instead of casting * Revert "settings: initalize resolution factor with constructor instead of casting" This reverts commit 54c35ecb46a29953842614620f9b7de1aa9d5dc8. * configure_graphics: guard device selector when Vulkan is global Prevents the user from editing the device selector if Vulkan is the global renderer backend. Also resets the vulkan_device variable when the users switches back-and-forth between global and Vulkan. * address reviewer concerns Changes function variables to const wherever they don't need to be changed. Sets Settings::Setting to final as it should not be inherited from. Sets ConfigurationShared::use_global_text to static. Co-Authored-By: VolcaEM <volcaem@users.noreply.github.com> * main: load per-game settings after LoadROM This prevents `Restart Emulation` from restoring the global settings *after* the per-game settings were applied. Thanks to BSoDGamingYT for finding this bug. * Revert "main: load per-game settings after LoadROM" This reverts commit 9d0d48c52d2dcf3bfb1806cc8fa7d5a271a8a804. * main: only restore global settings when necessary Loading the per-game settings cannot happen after the ROM is loaded, so we have to specify when to restore the global state. Again thanks to BSoD for finding the bug. * configuration_shared: address reviewer concerns except operator overrides Dropping operator override usage in next commit. Co-Authored-By: LC <lioncash@users.noreply.github.com> * settings: Drop operator overrides from Setting template Requires using GetValue and SetValue explicitly. Also reverts a change that broke title ID formatting in the game properties dialog. * complete rebase * configuration_shared: translate "Use global configuration" Uses ConfigurePerGame to do so, since its usage, at least as of now, corresponds with ConfigurationShared. * configure_per_game: address reviewer concern As far as I understand, it prevents the program from unnecessarily copying strings. Co-Authored-By: LC <lioncash@users.noreply.github.com> Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: VolcaEM <volcaem@users.noreply.github.com> Co-authored-by: LC <lioncash@users.noreply.github.com>
2020-06-26Add a "Mute Audio" hotkeyKewlan1-0/+7
2020-05-19yuzu: Add frontend settings for assembly shadersReinUsesLisp1-0/+1
Add settings for assembly shaders. Currently hidden to avoid users from accidentally enabled them.
2020-05-11core: settings: Add a setting for time zone.bunnei1-0/+16
2020-05-03settings: Add anisotropic filtering level to the yuzu configuration log (#3875)Morph1-0/+1
2020-04-22Correct Linux Compile Error.Fernando Sahmkow1-0/+8
2020-04-22UI: Replasce accurate GPU option for GPU Accuracy LevelFernando Sahmkow1-1/+1
2020-03-19set: implement GetRegionCodeDan1-0/+1
2020-02-26core: settings: Add setting to enable vsync, which is on by default.bunnei1-0/+1
2019-09-30settings: Add option to set BCAT backendZach Hilman1-0/+2
2019-09-21settings: Update LogSettings to show NAND/SDMC paths from FileUtilZach Hilman1-2/+3
2019-07-11yuzu: Remove setting for using UnicornLioncash1-1/+0
The JIT is mature enough that this setting can be removed, falling back to Unicorn only on unsupported architectures. Any missing features from Unicorn (of which there are extremely few), are mostly developer-oriented, which most users don't care about. Features should be coordinated with the JIT, not the interpreter, anyhow.
2019-07-04yuzu: Remove CPU Jit setting from the UIfearlessTobi1-1/+1
A normal user shouldn't change this, as it will slow down the emulation and can lead to bugs or crashes. The renaming is done in order to prevent users from leaving this on without a way to turn it off from the UI.
2019-05-30rasterizer_opengl: Remove OpenGL core profileReinUsesLisp1-1/+0
2019-04-20Allow picking a Compatibility Profile for OpenGL.Fernando Sahmkow1-0/+1
This option allows picking the compatibility profile since a lot of bugs are fixed in it. We devs will use this option to easierly debug current problems in our Core implementation.:wq
2019-03-29core/yuzu: Remove enable_nfc settingfearlessTobi1-1/+0
This was initially added to prevent problems from stubbed/not implemented NFC services, but as we never encountered such and as it's only used in a deprecated function anyway, I guess we can just remove it to prevent more clutter of the settings.
2019-03-09clang fixHexagon121-1/+2
2019-03-09Log 2 new setting valuesHexagon121-0/+2
2019-01-22citra_qt: Log settings on launchzhupengfei1-0/+29
2018-11-19hid: Use player-defined controller type as PREFERRED_CONTROLLERZach Hilman1-0/+50
2018-08-11video_core; Get rid of global g_toggle_framelimit_enabled variableLioncash1-5/+1
Instead, we make a struct for renderer settings and allow the renderer to update all of these settings, getting rid of the need for global-scoped variables. This also uncovered a few indirect inclusions for certain headers, which this commit also fixes.
2018-08-04video_core: Eliminate the g_renderer global variableLioncash1-2/+4
We move the initialization of the renderer to the core class, while keeping the creation of it and any other specifics in video_core. This way we can ensure that the renderer is initialized and doesn't give unfettered access to the renderer. This also makes dependencies on types more explicit. For example, the GPU class doesn't need to depend on the existence of a renderer, it only needs to care about whether or not it has a rasterizer, but since it was accessing the global variable, it was also making the renderer a part of its dependency chain. By adjusting the interface, we can get rid of this dependency.
2018-08-02video_core: Make global EmuWindow instance part of the base renderer classLioncash1-5/+3
Makes the global a member of the RendererBase class. We also change this to be a reference. Passing any form of null pointer to these functions is incorrect entirely, especially given the code itself assumes that the pointer would always be in a valid state. This also makes it easier to follow the lifecycle of instances being used, as we explicitly interact the renderer with the rasterizer, rather than it just operating on a global pointer.
2018-01-13Remove references to PICA and rasterizers in video_coreJames Rowe1-6/+0
2017-10-10hle: Remove a large amount of 3ds-specific service code.bunnei1-2/+0
2017-08-25SidebySide Layout (#2859)ThaMighty901-1/+1
* added a SidebySide Layout * Reworked, so both screen have the same height and cleaned up screen translates. * added the option in the UI, hope this is the right way to do it. formated framebuffer_layout.cpp * delete the x64 files * deleted ui_configure_graphics.h * added Option for the Layout in the xml * got rid of SIDE_BY_SIDE_ASPECT_RATIO because it was useless. pulled translate into variables * changed shift variables to u32 and moved them in their respective branch. remove notr="true" for the Screen layout drop down * reworked intends :). changed function description for SideFrameLayout * some description reworking
2017-05-28Core: Fix some out-of-style includesYuri Kunde Schlesner1-1/+1
2017-05-04ir: implement new 3ds HID via ir:rstwwylele1-1/+1
2017-05-03ir: implement circle pad prowwylele1-0/+2
2017-03-01HID: use ButtonDevicewwylele1-0/+3
2017-01-31removed the possibly uneeded cast on values.gdbstub_portnoah the goodra1-1/+1
as far as i could tell this cast is unneeded because [GDBStub::SetServerPort](https://github.com/citra-emu/citra/blob/master/src/core/gdbstub/gdbstub.cpp#L897) takes a u16 and [values.gdbstub_port](https://github.com/citra-emu/citra/blob/master/src/core/settings.h#L116) is already a u16
2017-01-07config: Add option for specifying screen resolution scale factor.bunnei1-1/+0
2016-12-23core: Move emu_window and key_map into coreMerryMage1-1/+1
* Removes circular dependences (common should not depend on core)
2016-12-06Implement Frame rate limiter (#2223)emmauss1-0/+1
* implement frame limiter * fixes
2016-11-05Support additional screen layouts.James Rowe1-0/+7
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-1/+0
2016-08-31configure_audio: User-configuratble option to enable/disable audio stretchingMerryMage1-0/+1
2016-04-30Audio: Add sink selection to configuration filesMerryMage1-0/+5
2016-04-21Config: Add scaled resolution optiontfarley1-1/+1
2016-04-11CitraQt: Apply config at startupJannik Vogel1-0/+14
2014-12-21License changepurpasmart961-1/+1
2014-10-08Added configuration file system.archshift1-0/+11
Uses QSettings on citra-qt, and inih on citra-cli.