summaryrefslogtreecommitdiffstats
path: root/src/core/telemetry_session.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core: NVDEC Implementationameerj2020-10-271-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>
* common/telemetry: Migrate namespace into the Common namespaceLioncash2020-08-181-0/+2
| | | | | Migrates the Telemetry namespace into the Common namespace to make the code consistent with the rest of our common code.
* common/fileutil: Convert namespace to Common::FSLioncash2020-08-161-6/+6
| | | | | | | | | | | | 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.
* Rebase for per game settingsDavid Marcec2020-07-171-0/+2
|
* configuration: implement per-game configurations (#4098)lat9nq2020-07-101-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* yuzu: Add frontend settings for assembly shadersReinUsesLisp2020-05-191-0/+1
| | | | | Add settings for assembly shaders. Currently hidden to avoid users from accidentally enabled them.
* UI: Replasce accurate GPU option for GPU Accuracy LevelFernando Sahmkow2020-04-221-2/+14
|
* CMakeLists: Specify -Wextra on linux buildsLioncash2020-04-161-3/+3
| | | | | | | | | | | Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
* core: settings: Add setting to enable vsync, which is on by default.bunnei2020-02-261-0/+1
|
* settings: Add settings for graphics backendReinUsesLisp2020-01-291-1/+11
|
* telemetry_session: Report renderer backendReinUsesLisp2019-12-021-0/+1
| | | | We only have OpenGL as an option for now. Hardcode the entry.
* telemetry_session: Use temporary to avoid writing the same enumReinUsesLisp2019-12-021-16/+11
|
* yuzu: Remove setting for using UnicornLioncash2019-07-111-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.
* yuzu: Remove CPU Jit setting from the UIfearlessTobi2019-07-041-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.
* core/telemetry_session: Remove unnecessary web service nulling out in destructorLioncash2019-05-291-2/+1
| | | | | This will automatically occur when the backend instance goes out of scope at the end of the destructor's execution.
* core/telemetry_session: Remove usages of the global system accessorLioncash2019-05-291-28/+32
| | | | | | | | | | | | | | | | Makes the dependency explicit in the TelemetrySession's interface instead of making it a hidden dependency. This also revealed a hidden issue with the way the telemetry session was being initialized. It was attempting to retrieve the app loader and log out title-specific information. However, this isn't always guaranteed to be possible. During the initialization phase, everything is being constructed. It doesn't mean an actual title has been selected. This is what the Load() function is for. This potentially results in dead code paths involving the app loader. Instead, we explicitly add this information when we know the app loader instance is available.
* core/telemetry_session: Only create the backend when we really need itzhupengfei2019-05-041-8/+9
| | | | The backend is not used until we decide to submit the testcase/telemetry, and creating it early prevents users from updating the credentials properly while the games are running.
* settings: Add new graphics setting for use_asynchronous_gpu_emulation.bunnei2019-03-071-0/+2
|
* settings: Hide shader cache behind a settingReinUsesLisp2019-02-071-0/+2
|
* web_service: move telemetry condition from TelemetrySession constructor to destructorfearlessTobi2018-12-081-8/+4
| | | | Fixes an issue where Testcases couldn't be sent when Telemetry was disabled, because both things are tied closely together in the backend.
* compatdb: Use a seperate endpoint for testcase submissionfearlessTobi2018-10-281-0/+9
|
* config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.bunnei2018-10-161-2/+2
| | | | - This will be used as a catch-all for slow-but-accurate GPU emulation paths.
* telemetry_session: Add missing includesLioncash2018-10-091-2/+4
| | | | | Prevents potential compilation issues in the future by including missing headers for certain functions and types.
* telemetry_session: Use a std::array in GenerateTelemetryId()Lioncash2018-10-091-2/+4
| | | | | | We don't need to potentially heap-allocate a std::string instance here, given the data is known ahead of time. We can just place it within an array and pass this to the mbedtls functions.
* Address more review commentsfearlessTobi2018-10-021-1/+1
|
* Address a bunch of review commentsfearlessTobi2018-10-021-5/+6
|
* Port web_service from CitrafearlessTobi2018-10-021-12/+39
|
* Add audio stretching supportfearlessTobi2018-09-081-0/+3
|
* drd: Parse title ID from program metadataZach Hilman2018-09-041-3/+21
|
* core/core: Replace includes with forward declarations where applicableLioncash2018-08-311-0/+1
| | | | | | | | | | | The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
* Merge pull request #840 from FearlessTobi/port-3353bunnei2018-08-221-2/+3
|\ | | | | Port #3353 from Citra: "citra-qt: Add customizable speed limit target "
| * Port #3353 from CitrafearlessTobi2018-08-211-2/+3
| |
* | telemetry_session: Don't allocate std::string instances for program lifetime in GetTelemetryId() and RegenerateTelemetryId()Lioncash2018-08-211-4/+4
| | | | | | | | | | | | Given these functions aren't intended to be used frequently, there's no need to keep the std::string instances allocated for the whole lifetime of the program. It's just a waste of memory.
* | common/telemetry: Migrate core-independent info gathering to commonLioncash2018-08-151-62/+7
|/ | | | | | | | | | | | Previously core itself was the library containing the code to gather common information (build info, CPU info, and OS info), however all of this isn't core-dependent and can be moved to the common code and use the common interfaces. We can then just call those functions from the core instead. This will allow replacing our CPU detection with Xbyak's which has better detection facilities than ours. It also keeps more architecture-dependent code in common instead of core.
* file_util: Use an enum class for GetUserPath()Lioncash2018-07-211-2/+4
| | | | | | | | | | | | | Instead of using an unsigned int as a parameter and expecting a user to always pass in the correct values, we can just convert the enum into an enum class and use that type as the parameter type instead, which makes the interface more type safe. We also get rid of the bookkeeping "NUM_" element in the enum by just using an unordered map. This function is generally low-frequency in terms of calls (and I'd hope so, considering otherwise would mean we're slamming the disk with IO all the time) so I'd consider this acceptable in this case.
* Rename logging macro back to LOG_*James Rowe2018-07-031-3/+3
|
* settings: Add a configuration for use_accurate_framebuffers.bunnei2018-06-271-0/+2
|
* core: Add a configuration setting for use_multi_core.bunnei2018-05-111-0/+2
|
* core: Replace remaining old non-generic logger usages with fmt-capable equivalentsLioncash2018-04-261-3/+3
| | | | | | LOG_GENERIC usages will be amended in a follow-up to keep API changes separate from interface changes, as it will require removing a parameter from the relevant function in the VMManager class.
* Merge pull request #276 from N00byKing/acctoyuzubunnei2018-04-031-2/+2
|\ | | | | Change Telemetry Names to yuzu and remove links to citra
| * Change Telemetry Names to yuzuN00byKing2018-03-271-2/+2
| |
* | config: Use simplified checkbox (from Citra) for CPU JIT.bunnei2018-03-271-2/+3
|/
* Port citra #3352 to yuzu (#103)River City Ransomware2018-01-201-1/+9
| | | | | | | | | | * Port citra #3352 to yuzu This change allows non x86_64 architectures to compile yuzu by skipping the building of dynarmic * Fixed clang-format errors * fixes more clang-format errors
* Removing unused settings and yuzu rebrandingJames Rowe2018-01-131-9/+0
|
* Remove gpu debugger and get yuzu qt to compileJames Rowe2018-01-131-5/+0
|
* core: Gut out cryptop, since it doesn't compile with C++17.bunnei2018-01-131-3/+0
|
* configuration: Add cpu_core configuration optionMerryMage2018-01-121-1/+2
|
* WebService: Verify username and token (#2930)B3n302017-09-191-0/+12
| | | | | | | | | | * WebService: Verify username and token; Log errors in PostJson * Fixup: added docstrings to the functions * Webservice: Added Icons to the verification, imrpved error detection in cpr, fixup nits * fixup: fmt warning
* web_services: Refactor to remove dependency on Core.bunnei2017-08-261-1/+7
|
* qt: Add an option to view/regenerate telemetry ID.bunnei2017-08-261-3/+16
|
* telemetry_session: Log telemetry ID.bunnei2017-08-261-0/+36
|
* telemetry: Add field for OsPlatform.bunnei2017-08-041-0/+9
|
* telemetry: Add field for BuildName.bunnei2017-08-041-0/+1
|
* telemetry_session: Log BuildDate and ProgramName fields.bunnei2017-08-041-0/+7
|
* telemetry: Log performance, configuration, and system data.bunnei2017-07-181-10/+66
|
* web_service: Add CMake flag to enable.bunnei2017-07-121-2/+8
|
* telemetry_session: Use TelemetryJson to submit real telemetry.bunnei2017-07-121-2/+2
|
* telemetry: Log a few simple data fields throughout core.bunnei2017-05-251-0/+18
|
* core: Keep track of telemetry for the current emulation session.bunnei2017-05-251-0/+24