Thylacine Studios - Forum

Buffer item set look-up results to improve performance.  (Read 958 times)

Offline Wulfe

  • **
  • Posts: 77
    • View Profile
Buffer item set look-up results to improve performance.
Reply #1 November 14, 2016, 05:31:19 PM
At least on a mid-range mobile device, the item set interface slows the game to roughly 2-3 fps. Since this appears to depend on the number of gems in the set, I'm guessing each gem gets searched every frame. The slow-down is bad enough to make input unresponsive. If the strings to be drawn for each element in the set were stored into a buffer array after the first lookup when the item set is highlighted, it would alleviate this issue.
Device: Samsung Galaxy Tab 4 - SM-T237P, Android 5.1.1
Game version: 2.3.2