littlektframework / littlekt

A multiplatform WebGPU 2D game framework written in Kotlin. Build your own game engine on top.
https://littlekt.com
Apache License 2.0
321 stars 12 forks source link

Add a cache for storing recent theme drawables / values #161

Closed LeHaine closed 2 years ago

LeHaine commented 2 years ago

Currently, anytime a drawable / constant / value for a theme is needed it needs to search for the theme owner. A cache should be added to prevent having to constantly search for the theme owner in order to give a performance boost.