From 16c7c7fbb9b3db3ffdb13b1fbabbf8fc4735c58d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 1 Feb 2015 23:29:12 +0100 Subject: [PATCH] (XMB) Only try to render about 100 items or so that are conceivably visible at the same time - should significantly optimize displaying of the MAME database --- menu/drivers/xmb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 688f096c08..9787d4f13c 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -959,6 +959,9 @@ static void xmb_draw_items(file_list_t *list, file_list_t *stack, break; } + if (i > (current + 100)) + continue; + xmb_draw_icon(icon, node->x + xmb->margin_left + xmb->hspacing - xmb->icon_size/2.0, xmb->margin_top + node->y + xmb->icon_size/2.0,