summaryrefslogtreecommitdiff
path: root/src/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* thread_worker: Fix compile time errorGravatar ameerj2021-07-221-1/+1
| | | | state is unused in the branch where with_state is false
* uuid: Directly compare UUID instead of checking per elementGravatar Chloe Marcec2021-07-211-3/+2
| | | | We can now update this for C++20
* input_common: Fix mouse panning behaivourGravatar german772021-07-161-1/+1
|
* Merge pull request #6579 from ameerj/float-settingsGravatar bunnei2021-07-152-6/+6
|\ | | | | settings: Eliminate usage of float-point setting values
| * configure_input: Use u8 for mouse sensitivityGravatar ameerj2021-07-081-1/+1
| |
| * configure_graphics: Use u8 for bg_color valuesGravatar ameerj2021-07-081-3/+3
| |
| * configure_audio: Use u8 for volume valueGravatar ameerj2021-07-082-2/+2
| |
* | Merge pull request #6576 from ameerj/unlock-fps-settingGravatar Morph2021-07-111-1/+1
|\ \ | | | | | | settings: Disable FPS unlimit setting between title launches
| * | settings: Disable FPS unlimit setting between title launchesGravatar ameerj2021-07-101-1/+1
| |/ | | | | | | | | | | 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.
* | Merge pull request #6573 from lat9nq/cpu-settings-cleanup-2Gravatar Fernando S2021-07-092-5/+8
|\ \ | | | | | | core,common,yuzu qt: Add CPU accuracy option 'Auto'
| * | settings, arm_dynarmic, yuzu qt: Move CPU debugging optionGravatar lat9nq2021-07-082-2/+2
| | | | | | | | | | | | | | | | | | 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.
| * | settings, yuzu qt: Add migration code for CPU accuracyGravatar lat9nq2021-07-081-0/+2
| | | | | | | | | | | | | | | | | | 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.
| * | core,common,yuzu qt: Add CPU accuracy option 'Auto'Gravatar lat9nq2021-07-081-4/+5
| |/ | | | | | | | | | | | | 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.
* | common/thread_worker: Stop workers on stop_token when waitingGravatar ReinUsesLisp2021-07-081-18/+20
| |
* | common/thread_worker: Add support for stateful threadsGravatar ReinUsesLisp2021-07-083-78/+86
| |
* | common/thread_worker: Simplify logicGravatar FernandoS272021-07-081-8/+1
| |
* | common/thread_worker: Fix data raceGravatar FernandoS272021-07-082-1/+18
| |
* | common/thread_worker: Use unique functionGravatar ReinUsesLisp2021-07-082-28/+24
| |
* | common: Add unique functionGravatar ReinUsesLisp2021-07-082-0/+63
| |
* | common/thread_worker: Add wait for requests methodGravatar ReinUsesLisp2021-07-082-0/+11
|/
* Merge pull request #6539 from lat9nq/default-settingGravatar Ameer J2021-07-082-123/+303
|\ | | | | general: Move most settings' defaults and labels into their definition
| * general: Code formatting improvementsGravatar lat9nq2021-07-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * settings: Set resolution_factor default to 1Gravatar lat9nq2021-07-011-1/+1
| | | | | | | | Fixes Disgaea 6 Demo issues.
| * general: Make most settings a BasicSettingGravatar lat9nq2021-06-282-127/+295
| | | | | | | | | | | | | | | | | | | | | | 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.
| * common: Force defaults for Settings::Setting'sGravatar lat9nq2021-06-261-44/+57
| | | | | | | | Requires a default value when creating each per-game setting.
* | common: logging: backend: Close the file after exceeding the write limitGravatar Morph2021-07-061-8/+11
| | | | | | | | 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.
* | common: fs: file: Revert Flush to its previous behavior and add CommitGravatar Morph2021-07-062-3/+34
| | | | | | | | | | | | 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.
* | common: fs: file: Flush the file in GetSizeGravatar Morph2021-07-061-0/+3
|/ | | | This ensures that GetSize always retrieves the correct file size after a write operation.
* Merge pull request #6519 from Wunkolo/mem-size-literalGravatar bunnei2021-06-244-49/+39
|\ | | | | common: Replace common_sizes into user-literals
| * common: Replace common_sizes into user-literalsGravatar Wunkolo2021-06-244-49/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | general: Add missing #pragma once directivesGravatar Morph2021-06-241-0/+2
| |
* | Merge pull request #6517 from lioncash/fmtlibGravatar bunnei2021-06-231-1/+2
|\ \ | |/ |/| externals: Update fmt to 8.0.0
| * General: Resolve fmt specifiers to adhere to 8.0.0 API where applicableGravatar Lioncash2021-06-231-1/+2
| | | | | | | | Also removes some deprecated API usages.
* | Merge pull request #6465 from FernandoS27/sex-on-the-beachGravatar Mai M2021-06-233-0/+4
|\ \ | |/ |/| GPU: Implement a garbage collector for GPU Caches (project Reaper+)
| * Reaper: Address Feedback.Gravatar Fernando Sahmkow2021-06-161-0/+1
| |
| * Reaper: Setup settings and final tuning.Gravatar Fernando Sahmkow2021-06-162-0/+3
| |
* | Merge pull request #6512 from ReinUsesLisp/wait-detached-stasksGravatar Mai M2021-06-221-0/+2
|\ \ | | | | | | common/detached_tasks: Wait for tasks before shutting down
| * | common/detached_tasks: Wait for tasks before shutting downGravatar Rodrigo Locatti2021-06-221-0/+2
| | | | | | | | | | | | | | | | | | 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.
* | | common: fs: Add a description of a regular file in IsFileGravatar Morph2021-06-221-4/+6
| | | | | | | | | | | | This provides a more concrete example of what a regular file is and isn't.
* | | common: fs: Amend IsFile check in FileOpen / (Write/Append)StringToFileGravatar Morph2021-06-224-9/+12
| | | | | | | | | | | | | | | | | | | | | 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.
* | | common: fs: file: Remove [[nodiscard]] attribute from FlushGravatar Morph2021-06-222-3/+3
| | | | | | | | | | | | 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.
* | | common: fs: Remove [[nodiscard]] attribute on Remove* functionsGravatar Morph2021-06-222-9/+9
|/ / | | | | | | | | | | 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.
* | Merge pull request #6499 from FernandoS27/we-were-on-a-breakGravatar bunnei2021-06-212-0/+2
|\ \ | | | | | | Update dynarmic and add new unsafe CPU option.
| * | Update dynarmic and add new unsafe CPU option.Gravatar Fernando Sahmkow2021-06-202-0/+2
| | |
* | | Merge pull request #6475 from ameerj/unlimit-fpsGravatar bunnei2021-06-211-0/+1
|\ \ \ | |/ / |/| | nvflinger: Add experimental toggle to disable buffer swap interval limits
| * | nvflinger: Add toggle to disable buffer swap interval limitsGravatar ameerj2021-06-171-0/+1
| |/ | | | | | | | | Enabling this setting will allow some titles to present more frames to the screen as they become available in the nvflinger buffer queue.
* / host_memory: Correct MEM_RESERVE_PLACEHOLDERGravatar lat9nq2021-06-191-1/+1
|/ | | | | Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our manually imported version of it drops the last zero.
* Merge pull request #6464 from ameerj/disable-astcGravatar bunnei2021-06-162-0/+3
|\ | | | | textures: Add a toggle for GPU Accelerated ASTC decoder
| * configure_graphics: Add Accelerate ASTC decoding settingGravatar ameerj2021-06-152-0/+3
| |
* | Merge pull request #6460 from Morph1984/fs-access-log-fixGravatar Morph2021-06-163-6/+2
|\ \ | | | | | | fsp_srv: Fix filesystem access logging