Skip to content

Commit

Permalink
Merge pull request #14808 from stuken/libretro_update_texture_filtering
Browse files Browse the repository at this point in the history
Expose new texture filtering mode in libretro
  • Loading branch information
hrydgard committed Sep 8, 2021
2 parents f92c33a + 6350b41 commit 03b53c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libretro/libretro.cpp
Expand Up @@ -212,7 +212,7 @@ static RetroOption<bool> ppsspp_block_transfer_gpu("ppsspp_block_transfer_gpu",
static RetroOption<int> ppsspp_inflight_frames("ppsspp_inflight_frames", "Buffered frames (Slower, less lag, restart)", { { "Up to 2", 2 }, { "Up to 1", 1 }, { "No buffer", 0 }, });
static RetroOption<int> ppsspp_texture_scaling_level("ppsspp_texture_scaling_level", "Texture Scaling Level", { { "Off", 1 }, { "2x", 2 }, { "3x", 3 }, { "4x", 4 }, { "5x", 5 }, { "Auto", 0 } });
static RetroOption<int> ppsspp_texture_scaling_type("ppsspp_texture_scaling_type", "Texture Scaling Type", { { "xbrz", TextureScalerCommon::XBRZ }, { "hybrid", TextureScalerCommon::HYBRID }, { "bicubic", TextureScalerCommon::BICUBIC }, { "hybrid_bicubic", TextureScalerCommon::HYBRID_BICUBIC } });
static RetroOption<int> ppsspp_texture_filtering("ppsspp_texture_filtering", "Texture Filtering", { { "Auto", 1 }, { "Nearest", 2 }, { "Linear", 3 } });
static RetroOption<int> ppsspp_texture_filtering("ppsspp_texture_filtering", "Texture Filtering", { { "Auto", 1 }, { "Nearest", 2 }, { "Linear", 3 }, {"Auto max quality", 4}});
static RetroOption<int> ppsspp_texture_anisotropic_filtering("ppsspp_texture_anisotropic_filtering", "Anisotropic Filtering", { "off", "2x", "4x", "8x", "16x" });
static RetroOption<int> ppsspp_lower_resolution_for_effects("ppsspp_lower_resolution_for_effects", "Lower resolution for effects", { {"Off", 0}, {"Safe", 1}, {"Balanced", 2}, {"Aggressive", 3} });
static RetroOption<bool> ppsspp_texture_deposterize("ppsspp_texture_deposterize", "Texture Deposterize", false);
Expand Down Expand Up @@ -404,10 +404,16 @@ static void check_variables(CoreParameter &coreParam)
coreParam.fastForward = isFastForwarding;

if (ppsspp_texture_scaling_type.Update(&g_Config.iTexScalingType) && gpu)
{
gpu->ClearCacheNextFrame();
gpu->Resized();
}

if (ppsspp_texture_scaling_level.Update(&g_Config.iTexScalingLevel) && gpu)
{
gpu->ClearCacheNextFrame();
gpu->Resized();
}
}

void retro_set_audio_sample_batch(retro_audio_sample_batch_t cb) { audio_batch_cb = cb; }
Expand Down

0 comments on commit 03b53c6

Please sign in to comment.