From c3229289860c03df075edeace675f79d8875b4fe Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sun, 20 Mar 2016 19:47:40 +0100 Subject: [PATCH] improved cache generation performance --- item_cache.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/item_cache.lua b/item_cache.lua index 4c7d1bf..cca4a13 100644 --- a/item_cache.lua +++ b/item_cache.lua @@ -59,8 +59,7 @@ function public.populate_wdb() AuxTooltip:SetHyperlink('item:'..item_id) end - local t0 = GetTime() - Aux.control.as_soon_as(function() return GetItemInfo('item:'..item_id) or GetTime() - t0 > 0.1 end, function() + Aux.control.on_next_update(function() return helper(item_id + 1) end) end