summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2021-07-22shader_recompiler,video_core: Cleanup some GCC and Clang errorslat9nq
Mostly fixing unused *, implicit conversion, braced scalar init, fpermissive, and some others. Some Clang errors likely remain in video_core, and std::ranges is still a pertinent issue in shader_recompiler shader_recompiler: cmake: Force bracket depth to 1024 on Clang Increases the maximum fold expression depth thread_worker: Include condition_variable Don't use list initializers in control flow Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc>
2021-07-22shader: Remove old shader managementReinUsesLisp
2021-07-22thread_worker: Fix compile time errorameerj
state is unused in the branch where with_state is false
2021-07-21uuid: Directly compare UUID instead of checking per elementChloe Marcec
We can now update this for C++20
2021-07-16input_common: Fix mouse panning behaivourgerman77
2021-07-15Merge pull request #6579 from ameerj/float-settingsbunnei
settings: Eliminate usage of float-point setting values
2021-07-11Merge pull request #6576 from ameerj/unlock-fps-settingMorph
settings: Disable FPS unlimit setting between title launches
2021-07-10settings: Disable FPS unlimit setting between title launchesameerj
Some titles crash if the FPS limit is disabled when launching. This change ensures that titles launch with the limit in-place to avoid issues. In order to simplify the change, the UI toggle was removed as it will always be overridden at launch to be disabled. The setting can still be toggled during gameplay with the hotkey, and indicated by the fps label in the status bar.
2021-07-09Merge pull request #6573 from lat9nq/cpu-settings-cleanup-2Fernando S
core,common,yuzu qt: Add CPU accuracy option 'Auto'
2021-07-08configure_input: Use u8 for mouse sensitivityameerj
2021-07-08configure_graphics: Use u8 for bg_color valuesameerj
2021-07-08configure_audio: Use u8 for volume valueameerj
2021-07-08common/thread_worker: Stop workers on stop_token when waitingReinUsesLisp
2021-07-08common/thread_worker: Add support for stateful threadsReinUsesLisp
2021-07-08common/thread_worker: Simplify logicFernandoS27
2021-07-08common/thread_worker: Fix data raceFernandoS27
2021-07-08common/thread_worker: Use unique functionReinUsesLisp
2021-07-08common: Add unique functionReinUsesLisp
2021-07-08common/thread_worker: Add wait for requests methodReinUsesLisp
2021-07-08settings, arm_dynarmic, yuzu qt: Move CPU debugging optionlat9nq
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-07-08settings, yuzu qt: Add migration code for CPU accuracylat9nq
Old CPU Accuracy setting won't translate well into since we're adding one at the beginning of the list. On first boot with the new setting, just use the default setting.
2021-07-08core,common,yuzu qt: Add CPU accuracy option 'Auto'lat9nq
The current CPU accuracy settings in yuzu are fairly polarized and require more than common knowledge to know what the optimal settings for yuzu would be. This adds a curated option called 'Auto' that applies a few at the moment known-good unsafe optimizations to Dynarmic.
2021-07-08Merge pull request #6539 from lat9nq/default-settingAmeer J
general: Move most settings' defaults and labels into their definition
2021-07-08general: Code formatting improvementslat9nq
Slight improvements to readability. Dropped suggestions for string_view (settings.h:101), pass by value (settings.h:82), reverting double to a float (config.cpp:316), and other smaller ones, some out of scope. Addresses review feedback. Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-07-06common: logging: backend: Close the file after exceeding the write limitMorph
There's no point in keeping the file open after the write limit is exceeded. This allows the file to be committed to the disk shortly after it is closed and avoids redundantly checking whether or not the write limit is exceeded.
2021-07-06common: fs: file: Revert Flush to its previous behavior and add CommitMorph
It became apparent that logging can continuously spam errors that trigger file flushing. Since committing the files to disk is an expensive operation, this causes unnecessarily high disk usage. As such, we will revert Flush() to the previous behavior and add a Commit() member function in the event that this behavior is needed.
2021-07-06common: fs: file: Flush the file in GetSizeMorph
This ensures that GetSize always retrieves the correct file size after a write operation.
2021-07-01settings: Set resolution_factor default to 1lat9nq
Fixes Disgaea 6 Demo issues.
2021-06-28general: Make most settings a BasicSettinglat9nq
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-26common: Force defaults for Settings::Setting'slat9nq
Requires a default value when creating each per-game setting.
2021-06-24Merge pull request #6519 from Wunkolo/mem-size-literalbunnei
common: Replace common_sizes into user-literals
2021-06-24common: Replace common_sizes into user-literalsWunkolo
Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals.
2021-06-24general: Add missing #pragma once directivesMorph
2021-06-23Merge pull request #6517 from lioncash/fmtlibbunnei
externals: Update fmt to 8.0.0
2021-06-23General: Resolve fmt specifiers to adhere to 8.0.0 API where applicableLioncash
Also removes some deprecated API usages.
2021-06-23Merge pull request #6465 from FernandoS27/sex-on-the-beachMai M
GPU: Implement a garbage collector for GPU Caches (project Reaper+)
2021-06-22Merge pull request #6512 from ReinUsesLisp/wait-detached-stasksMai M
common/detached_tasks: Wait for tasks before shutting down
2021-06-22common: fs: Add a description of a regular file in IsFileMorph
This provides a more concrete example of what a regular file is and isn't.
2021-06-22common: fs: Amend IsFile check in FileOpen / (Write/Append)StringToFileMorph
This check was preventing files with the Write or Append file access modes from being created, as per the documented behavior in FileAccessMode. This amends the check to test for the existence of a filesystem object prior to checking whether it is a regular file. Thanks to liushuyu for pointing out that removing the check altogether would not guard against attempting to open non-regular files such as directories, symlinks, FIFO (pipes), sockets, block devices, or character devices. The documentation has also been updated for these functions to clarify that a file refers to a regular file.
2021-06-22common: fs: file: Remove [[nodiscard]] attribute from FlushMorph
Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary.
2021-06-22common: fs: Remove [[nodiscard]] attribute on Remove* functionsMorph
There are a lot of scenarios where we don't particularly care whether or not the removal operation and just simply attempt a removal. As such, removing the [[nodiscard]] attribute is best for these functions.
2021-06-22common/detached_tasks: Wait for tasks before shutting downRodrigo Locatti
If this is not waited on, the synchronization primitives are destroyed whe main exits and the detached task ends up signalling garbage and not properly finishing.
2021-06-21Merge pull request #6499 from FernandoS27/we-were-on-a-breakbunnei
Update dynarmic and add new unsafe CPU option.
2021-06-21Merge pull request #6475 from ameerj/unlimit-fpsbunnei
nvflinger: Add experimental toggle to disable buffer swap interval limits
2021-06-20Update dynarmic and add new unsafe CPU option.Fernando Sahmkow
2021-06-19host_memory: Correct MEM_RESERVE_PLACEHOLDERlat9nq
Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our manually imported version of it drops the last zero.
2021-06-17nvflinger: Add toggle to disable buffer swap interval limitsameerj
Enabling this setting will allow some titles to present more frames to the screen as they become available in the nvflinger buffer queue.
2021-06-16Reaper: Address Feedback.Fernando Sahmkow
2021-06-16Reaper: Setup settings and final tuning.Fernando Sahmkow
2021-06-16Merge pull request #6464 from ameerj/disable-astcbunnei
textures: Add a toggle for GPU Accelerated ASTC decoder