Commit graph

10174 commits

Author SHA1 Message Date
Steveice10
469f76b075
qt: Display OpenGL renderer name and add Mesa override to support Windows OpenGLOn12. (#7395) 2024-01-29 12:24:41 -08:00
amwatson
f38a05daee Merge remote-tracking branch 'upstream/master' into merge_from_upstream 2024-01-28 21:55:28 -06:00
amwatson
ae6d2604b3 Commenting out file delete because apparently it doesn't work yet 2024-01-28 21:50:21 -06:00
amwatson
7a2118f613 set default CPU level to 3 (reduces power draw) 2024-01-28 21:05:08 -06:00
amwatson
6571ca4c26 update Immersive Mode strings and add warning 2024-01-28 19:32:02 -06:00
Amanda Watson
fbabdf7e50
Merge pull request #37 from DrBeef/drbeef_immersive_tweaks
Pass the vr_use_immersive_mode as a Vertex Shader Uniform flag
2024-01-28 18:48:19 -06:00
amwatson
56b199f451 Don't throw an exception when settings file is not found 2024-01-28 18:19:31 -06:00
amwatson
792992fcfc moved VrReleaseVersion stuff into its own class and created utils directory for VrUtils 2024-01-28 18:19:10 -06:00
Simon
1eb7c159e6 Pass the vr_use_immersive_mode as a Vertex Shader Uniform
This means the same shaders can be used for both immersive and non-immersive as the uniform itself it the toggle in the GLSL rather than generating two different instances of the shader.
Furthermore, only one place where the gl_Position was being modified was actually needed; the other two seem to be able to be removed without it preventing immersive mode from working.
2024-01-28 23:07:34 +00:00
amwatson
55078ad93a delete config.ini if version below 0.4.0 -- use release version as visible version name in About section 2024-01-28 16:47:30 -06:00
amwatson
c652bbf25f [EmulationActivity] Input handling: var -> val 2024-01-28 14:40:04 -06:00
amwatson
5aa8a4cae5 add 'is already active?' checks to bumpers to ensure same behavior as sticks. In addition to the existing check for a previous mapping, this check only overwrites the value if the previous mapping had activity 2024-01-28 14:39:22 -06:00
amwatson
569a98382b Input handling: set defaults for triggers (ensuring that defaults don't overwrite user-defined values in loop 2024-01-28 14:28:35 -06:00
amwatson
687edab96c [default_init.h] Add example mappings in comments 2024-01-28 14:27:16 -06:00
SachinVin
7a4854c519
shader_setup.h: Initialise program_code (#7396) 2024-01-28 06:02:40 -08:00
amwatson
9af2ba200f Add default gamepad button values 2024-01-27 19:13:39 -06:00
amwatson
b640de3826 [default_init] remove some fields that don't make sense for VR users (note: they can still be set with a config) 2024-01-27 16:33:55 -06:00
amwatson
fa3cd3e51b move any critical default values out of default_ini, into settings.h 2024-01-27 16:30:29 -06:00
amwatson
f9e6833b90 remove input defaults from the INI 2024-01-27 16:19:31 -06:00
Steveice10
d1e3dddf6a
core: Fix invalid log formatting in ARM interpreter. (#7391) 2024-01-27 00:39:27 -08:00
amwatson
636f3647f7 [Immersive mode] add a resolution offset to avoid users modifying their default settings 2024-01-26 23:51:05 -06:00
amwatson
6da5e59ce4 [Immersive mode] add a min resolution factor 2024-01-26 23:10:36 -06:00
amwatson
ceacf7b3f6 [Immersive mode] update strings to reflect that resolution can be changed by the user 2024-01-26 23:10:36 -06:00
amwatson
063402d8cb When immersive mode is enabled, override graphics API preference and use OpenGL 2024-01-26 23:10:36 -06:00
amwatson
0e44c7a5ea Added a bit to shader cache keyto differentiate immersive vs non-immersive mode so the wrong shader isn't used on settings switch 2024-01-26 23:10:33 -06:00
Charles Lombardo
265e8193b9
Merge pull request #7392 from amwatson/patch-1
[SettingsFragmentPresenter.kt] correct RESOLUTION_FACTOR key/default
2024-01-26 22:43:04 -05:00
amwatson
dbfea78252 Merge remote-tracking branch 'upstream/master' into merge_from_upstream 2024-01-26 21:05:28 -06:00
Amanda Watson
e8c20fa782
[SettingsFragmentPresenter.kt] set RESOLUTION_FACTOR preference with RESOLUTION_FACTOR setting instead of GRAPHICS_API
Currently, the RESOLUTION_FACTOR preference is being set with the GRAPHICS_API key and default. Therefore, it will set/retrieve the wrong values

This revision updates the RESOLUTION_FACTOR preference to use the RESOLUTION_FACTOR key and default value. As a result, RESOLUTION_FACTOR and GRAPHICS_API should store and return the correct (separate) values
2024-01-26 19:14:27 -06:00
Simon
db0a76f672 Implemented additional "Immersive Mode" with higher resolution
Uses a smaller radius screen which fits just within the view bounds and therefore has a higher resolution, but still feels "immersive". I also lowered the lower screen so it doesn't obscure the smaller main panel.
2024-01-26 23:52:21 +00:00
Simon
4e9afd699c Merge branch 'lubos_immersive_mode' of https://github.com/DrBeef/CitraVR into lubos_immersive_mode 2024-01-26 18:30:28 +00:00
PabloMK7
95ae46f6a8
SOC_U: Account for variable CTRSockAddr size (#7387)
* SOC_U: Account for variable CTRSockAddr size.

* Apply suggestions
2024-01-26 08:00:19 -08:00
Steveice10
41fe75acb7
renderer_vulkan: Pass physical device API version to VMA instead of instance version. (#7390) 2024-01-26 16:34:12 +02:00
Amanda Watson
55f1ad80be
Merge branch 'master' into lubos_immersive_mode 2024-01-25 16:26:19 -06:00
amwatson
5d4bb40139 lower the lower panel in immersive mode 2024-01-25 16:23:08 -06:00
Amanda Watson
92d698a1b5
Merge pull request #25 from gyroninja/remove-mic-nag
Move request for microphone permission to onCreate
2024-01-24 22:00:38 -06:00
gyro
ce640bb1f3 Move request for microphone permission to onCreate
This request can cause issues if the user denies the microphone permission.
Calling requestPermissions causes GrantPermissionsActivity to be launched.
Citra's MainActivity will pause. GrantPermissionsActivity will immediately
finish as the user has already denied the permission. Citra's MainActivity then
gets resumed and then tries to request the permission again forming a loop.
2024-01-24 19:08:24 -08:00
amwatson
b56239953a [vr] Move logging to Citra-android backend 2024-01-24 21:05:04 -06:00
amwatson
acf4e3143d lower the lower panel in immersive mode 2024-01-24 19:57:13 -06:00
amwatson
47186f0d67 updated gamesurfacelayer and settings for immersive mode (not sure yet if 5 is a special constant or based on resolution) 2024-01-24 19:57:13 -06:00
amwatson
1d92111a00 [SettingsFragmentPresenter] select OpenGL as default graphics API 2024-01-24 17:36:53 -06:00
amwatson
64e8c7ca3c Show defaults for resolution, background in settings UI 2024-01-24 17:36:21 -06:00
Tobias
1744537d85
Small improvements to Citra translations (#7379)
* dist: Remove duplicated Finnish translation

For some reason, we had Finnish listed twice on Transifex, causing it be shown twice in Citra.
It has already been deleted again from Transifex, now we only need to remove it from the repo as well.

* citra_qt/configure_ui: Show country of language in the combobox

This prevents an issue where we had seperate versions of the same language for different regions and they were not distinguishable (e.g. "Chinese (China)" and "Chinese (Taiwan)").
2024-01-24 15:17:15 -08:00
amwatson
50891ee8c2 Set resolution and default background based on HMD type 2024-01-24 17:13:53 -06:00
amwatson
1044c78069 Revert "move logging to Citra-android backend"
This reverts commit 7597481444.
2024-01-24 16:56:14 -06:00
amwatson
7597481444 move logging to Citra-android backend 2024-01-24 14:00:34 -06:00
GPUCode
bea863efff
general: Fixes for Tales of the Abyss (#7381)
* geometry_pipeline: Remove unneeded assert

* Has been hw-tested that gs works correctly even when not in exclusive mode

* pica_core: Propagate output_mask to gs

* Has been hw-tested to occur under the same conditions that other uniforms are shared

* regs_shader: Intialize GPUREG_SH_INPUTBUFFER_CONFIG to default value

* Default value verified on hw. Tales of Abyss does not update the number of vertex attributes for the geometry unit and expects it to be 2

* texture_codec: Align buffer sizes to bpp

* Prevents out of bounds texture reads when launching TOA from the HOME menu

* pica_core: Make default value more clear
2024-01-24 19:22:10 +02:00
Daniel López Guimaraes
89e13a85a7
Implement NEWS service (#7377) 2024-01-24 19:21:48 +02:00
amwatson
3dd3e253de reformat c++ code to be my preferred format (since it seems unlikely we'll merge back anytime soon 2024-01-23 21:32:15 -06:00
amwatson
6c2e2613fc [OpenXR] move hmdType from OpenXR to vr_main 2024-01-23 21:32:15 -06:00
amwatson
bde389d0bd sets citra res to auto and scales surface with resolution factor (so user directly controls graphical intensity. Might get worse filtering on smaller textures) 2024-01-23 21:32:15 -06:00