Mupen64-Rewrite / SM64LuaRedux

Powerful SM64 TASing utility
GNU General Public License v3.0
4 stars 6 forks source link

Nineslice texture caching #5

Closed Aurumaker72 closed 1 year ago

Aurumaker72 commented 1 year ago

Ninesliced textures along with visual state information should be cached


local cache = {}

function draw_button()
    if not cache[visual_state][button.text] then
        -- generate
    end

    draw_image(cache[visual_state][button.text])
end
Aurumaker72 commented 1 year ago

Implemented in mupen 1.1.5 and added to ugui-ext in ecbb49bbc405a58196af29c36be9debdb9b49513