mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Add PERFORMANCE_TEST with sdl SW scaling.
This commit is contained in:
parent
b44bd25ab3
commit
35818e82be
@ -305,7 +305,11 @@ static bool sdl_gfx_frame(void *data, const void *frame, unsigned width, unsigne
|
|||||||
if (SDL_MUSTLOCK(vid->screen))
|
if (SDL_MUSTLOCK(vid->screen))
|
||||||
SDL_LockSurface(vid->screen);
|
SDL_LockSurface(vid->screen);
|
||||||
|
|
||||||
|
RARCH_PERFORMANCE_INIT(sdl_scale);
|
||||||
|
RARCH_PERFORMANCE_START(sdl_scale);
|
||||||
scaler_ctx_scale(&vid->scaler, vid->screen->pixels, frame);
|
scaler_ctx_scale(&vid->scaler, vid->screen->pixels, frame);
|
||||||
|
RARCH_PERFORMANCE_STOP(sdl_scale);
|
||||||
|
|
||||||
if (msg)
|
if (msg)
|
||||||
sdl_render_msg(vid, vid->screen, msg, vid->screen->w, vid->screen->h, vid->screen->format);
|
sdl_render_msg(vid, vid->screen, msg, vid->screen->w, vid->screen->h, vid->screen->format);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user