mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-04-28 13:47:59 +03:00
android: Add Texture Sampling settings UI
Some checks are pending
citra-build / source (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-build / android (push) Waiting to run
citra-build / ios (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-transifex / transifex (push) Waiting to run
Some checks are pending
citra-build / source (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-build / android (push) Waiting to run
citra-build / ios (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-transifex / transifex (push) Waiting to run
This commit is contained in:
parent
d8077fdea6
commit
1de19fcbc2
6 changed files with 39 additions and 2 deletions
|
@ -60,6 +60,7 @@ enum class IntSetting(
|
|||
VSYNC("use_vsync_new", Settings.SECTION_RENDERER, 1),
|
||||
DEBUG_RENDERER("renderer_debug", Settings.SECTION_DEBUG, 0),
|
||||
TEXTURE_FILTER("texture_filter", Settings.SECTION_RENDERER, 0),
|
||||
TEXTURE_SAMPLING("texture_sampling", Settings.SECTION_RENDERER, 0),
|
||||
USE_FRAME_LIMIT("use_frame_limit", Settings.SECTION_RENDERER, 1),
|
||||
DELAY_RENDER_THREAD_US("delay_game_render_thread_us", Settings.SECTION_RENDERER, 0),
|
||||
USE_ARTIC_BASE_CONTROLLER("use_artic_base_controller", Settings.SECTION_CONTROLS, 0),
|
||||
|
|
|
@ -951,6 +951,19 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView)
|
|||
)
|
||||
)
|
||||
|
||||
add(HeaderSetting(R.string.advanced))
|
||||
add(
|
||||
SingleChoiceSetting(
|
||||
IntSetting.TEXTURE_SAMPLING,
|
||||
R.string.texture_sampling_name,
|
||||
R.string.texture_sampling_description,
|
||||
R.array.textureSamplingNames,
|
||||
R.array.textureSamplingValues,
|
||||
IntSetting.TEXTURE_SAMPLING.key,
|
||||
IntSetting.TEXTURE_SAMPLING.defaultValue
|
||||
)
|
||||
)
|
||||
|
||||
// Disabled until custom texture implementation gets rewrite, current one overloads RAM
|
||||
// and crashes Citra.
|
||||
// add(
|
||||
|
|
|
@ -125,6 +125,11 @@ shaders_accurate_mul =
|
|||
# 0: Interpreter (slow), 1 (default): JIT (fast)
|
||||
use_shader_jit =
|
||||
|
||||
# Overrides the sampling filter used by games. This can be useful in certain
|
||||
# cases with poorly behaved games when upscaling.
|
||||
# 0 (default): Game Controlled, 1: Nearest Neighbor, 2: Linear
|
||||
texture_sampling =
|
||||
|
||||
# Forces VSync on the display thread. Usually doesn't impact performance, but on some drivers it can
|
||||
# so only turn this off if you notice a speed difference.
|
||||
# 0: Off, 1 (default): On
|
||||
|
|
|
@ -233,6 +233,17 @@
|
|||
<item>5</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="textureSamplingNames">
|
||||
<item>@string/game_controlled</item>
|
||||
<item>@string/nearest_neighbor</item>
|
||||
<item>@string/linear</item>
|
||||
</string-array>
|
||||
<integer-array name="textureSamplingValues">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="staticThemeNames">
|
||||
<item>Blue (Default)</item>
|
||||
<item>Cyan</item>
|
||||
|
|
|
@ -227,6 +227,9 @@
|
|||
<string name="linear_filtering_description">Enables linear filtering, which causes game visuals to appear smoother.</string>
|
||||
<string name="texture_filter_name">Texture Filter</string>
|
||||
<string name="texture_filter_description">Enhances the visuals of applications by applying a filter to textures. The supported filters are Anime4K Ultrafast, Bicubic, ScaleForce, xBRZ freescale, and MMPX.</string>
|
||||
<string name="advanced">Advanced"</string>
|
||||
<string name="texture_sampling_name">Texture Sampling</string>
|
||||
<string name="texture_sampling_description">Overrides the sampling filter used by games. This can be useful in certain cases with poorly behaved games when upscaling. If unsure, set this to Game Controlled.</string>
|
||||
<string name="hw_shaders">Enable Hardware Shader</string>
|
||||
<string name="hw_shaders_description">Uses hardware to emulate 3DS shaders. When enabled, game performance will be significantly improved.</string>
|
||||
<string name="shaders_accurate_mul">Accurate Multiplication</string>
|
||||
|
@ -596,11 +599,15 @@
|
|||
<!-- Texture filter names -->
|
||||
<string name="anime4k">Anime4K</string>
|
||||
<string name="bicubic">Bicubic</string>
|
||||
<string name="nearest_neighbor">Nearest Neighbor</string>
|
||||
<string name="scaleforce">ScaleForce</string>
|
||||
<string name="xbrz">xBRZ</string>
|
||||
<string name="mmpx">MMPX</string>
|
||||
|
||||
<!-- Texture Sampling names -->
|
||||
<string name="game_controlled">Game Controlled</string>
|
||||
<string name="nearest_neighbor">Nearest Neighbor</string>
|
||||
<string name="linear">Linear</string>
|
||||
|
||||
<!-- Sound output modes -->
|
||||
<string name="mono">Mono</string>
|
||||
<string name="stereo">Stereo</string>
|
||||
|
|
|
@ -258,7 +258,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="texture_sampling_label">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Overrides the sampling filter used by applications. This can be useful in certain cases with poorly behaved applications when upscaling. If unsure set this to Application Controlled</p></body></html></string>
|
||||
<string><html><head/><body><p>Overrides the sampling filter used by applications. This can be useful in certain cases with poorly behaved applications when upscaling. If unsure, set this to Application Controlled</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Texture Sampling</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue