mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(VITA) Show fps
This commit is contained in:
parent
26546a812b
commit
d514963a95
@ -167,6 +167,8 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
|
||||
{
|
||||
void *tex_p;
|
||||
vita_video_t *vita = (vita_video_t *)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
|
||||
(void)frame;
|
||||
(void)width;
|
||||
@ -225,7 +227,7 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
|
||||
|
||||
vita2d_start_drawing();
|
||||
vita2d_clear_screen();
|
||||
|
||||
|
||||
if (vita->texture)
|
||||
{
|
||||
if (vita->fullscreen)
|
||||
@ -243,6 +245,15 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
|
||||
vita->vp.y, scalex, scaley, rad);
|
||||
}
|
||||
}
|
||||
|
||||
if (settings->fps_show)
|
||||
{
|
||||
char buffer[128] = {0};
|
||||
char buffer_fps[128] = {0};
|
||||
video_monitor_get_fps(buffer, sizeof(buffer),
|
||||
settings->fps_show ? buffer_fps : NULL, sizeof(buffer_fps));
|
||||
runloop_msg_queue_push(buffer_fps, 1, 1, false);
|
||||
}
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
if (vita->overlay_enable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user