mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(PS3) Take out triple buffering
This commit is contained in:
parent
b9ed33f1ad
commit
bda03a52fe
@ -142,7 +142,6 @@ enum menu_enums
|
|||||||
MODE_EXITSPAWN,
|
MODE_EXITSPAWN,
|
||||||
MODE_EXITSPAWN_START_GAME,
|
MODE_EXITSPAWN_START_GAME,
|
||||||
MODE_EXITSPAWN_MULTIMAN,
|
MODE_EXITSPAWN_MULTIMAN,
|
||||||
MODE_VIDEO_TRIPLE_BUFFERING_ENABLE,
|
|
||||||
MODE_OSK_ENTRY_SUCCESS,
|
MODE_OSK_ENTRY_SUCCESS,
|
||||||
MODE_OSK_ENTRY_FAIL,
|
MODE_OSK_ENTRY_FAIL,
|
||||||
MODE_CLEAR_INPUT,
|
MODE_CLEAR_INPUT,
|
||||||
|
@ -230,13 +230,6 @@ static bool gfx_ctx_init(void *data)
|
|||||||
params.depthFormat = GL_NONE;
|
params.depthFormat = GL_NONE;
|
||||||
params.multisamplingMode = GL_MULTISAMPLING_NONE_SCE;
|
params.multisamplingMode = GL_MULTISAMPLING_NONE_SCE;
|
||||||
|
|
||||||
if (g_extern.lifecycle_state & (1ULL << MODE_VIDEO_TRIPLE_BUFFERING_ENABLE))
|
|
||||||
{
|
|
||||||
RARCH_LOG("[PSGL Context]: Setting triple buffering.\n");
|
|
||||||
params.enable |= PSGL_DEVICE_PARAMETERS_BUFFERING_MODE;
|
|
||||||
params.bufferingMode = PSGL_BUFFERING_MODE_TRIPLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_extern.console.screen.resolutions.current.id)
|
if (g_extern.console.screen.resolutions.current.id)
|
||||||
{
|
{
|
||||||
params.enable |= PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT;
|
params.enable |= PSGL_DEVICE_PARAMETERS_WIDTH_HEIGHT;
|
||||||
|
13
settings.c
13
settings.c
@ -454,7 +454,6 @@ void config_set_defaults(void)
|
|||||||
g_extern.console.sound.system_bgm_enable = false;
|
g_extern.console.sound.system_bgm_enable = false;
|
||||||
#ifdef RARCH_CONSOLE
|
#ifdef RARCH_CONSOLE
|
||||||
g_extern.console.screen.gamma_correction = DEFAULT_GAMMA;
|
g_extern.console.screen.gamma_correction = DEFAULT_GAMMA;
|
||||||
g_extern.lifecycle_state |= (1ULL << MODE_VIDEO_TRIPLE_BUFFERING_ENABLE);
|
|
||||||
|
|
||||||
g_extern.console.screen.resolutions.current.id = 0;
|
g_extern.console.screen.resolutions.current.id = 0;
|
||||||
g_extern.console.sound.mode = SOUND_MODE_NORMAL;
|
g_extern.console.sound.mode = SOUND_MODE_NORMAL;
|
||||||
@ -865,16 +864,6 @@ bool config_load_file(const char *path, bool set_defaults)
|
|||||||
|
|
||||||
CONFIG_GET_BOOL_EXTERN(console.screen.gamma_correction, "gamma_correction");
|
CONFIG_GET_BOOL_EXTERN(console.screen.gamma_correction, "gamma_correction");
|
||||||
|
|
||||||
bool triple_buffering_enable = false;
|
|
||||||
|
|
||||||
if (config_get_bool(conf, "triple_buffering_enable", &triple_buffering_enable))
|
|
||||||
{
|
|
||||||
if (triple_buffering_enable)
|
|
||||||
g_extern.lifecycle_state |= (1ULL << MODE_VIDEO_TRIPLE_BUFFERING_ENABLE);
|
|
||||||
else
|
|
||||||
g_extern.lifecycle_state &= ~(1ULL << MODE_VIDEO_TRIPLE_BUFFERING_ENABLE);
|
|
||||||
}
|
|
||||||
|
|
||||||
config_get_bool(conf, "custom_bgm_enable", &g_extern.console.sound.system_bgm_enable);
|
config_get_bool(conf, "custom_bgm_enable", &g_extern.console.sound.system_bgm_enable);
|
||||||
config_get_bool(conf, "flicker_filter_enable", &g_extern.console.flickerfilter_enable);
|
config_get_bool(conf, "flicker_filter_enable", &g_extern.console.flickerfilter_enable);
|
||||||
config_get_bool(conf, "soft_filter_enable", &g_extern.console.softfilter_enable);
|
config_get_bool(conf, "soft_filter_enable", &g_extern.console.softfilter_enable);
|
||||||
@ -1403,9 +1392,7 @@ bool config_save_file(const char *path)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
config_set_bool(conf, "gamma_correction", g_extern.console.screen.gamma_correction);
|
config_set_bool(conf, "gamma_correction", g_extern.console.screen.gamma_correction);
|
||||||
bool triple_buffering_enable_val = g_extern.lifecycle_state & (1ULL << MODE_VIDEO_TRIPLE_BUFFERING_ENABLE);
|
|
||||||
|
|
||||||
config_set_bool(conf, "triple_buffering_enable", triple_buffering_enable_val);
|
|
||||||
config_set_bool(conf, "soft_filter_enable", g_extern.console.softfilter_enable);
|
config_set_bool(conf, "soft_filter_enable", g_extern.console.softfilter_enable);
|
||||||
config_set_bool(conf, "flicker_filter_enable", g_extern.console.flickerfilter_enable);
|
config_set_bool(conf, "flicker_filter_enable", g_extern.console.flickerfilter_enable);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user