Author Topic: Add cache for country outlines materials  (Read 248 times)

michaeltepl

  • Newbie
  • *
  • Posts: 3
    • View Profile
Add cache for country outlines materials
« on: May 19, 2020, 09:55:45 AM »
Hi!
I suggest you to add cache for country ouline materials similar to countryColoredMatCache, because now every call of DrawRegionOutline method creates new instance of outlineMatCurrent material, even if it was previously called with same color. Current behaviur violates batching rules ans causes increase of SetPass calls.

Regards

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5832
    • View Profile
Re: Add cache for country outlines materials
« Reply #1 on: May 19, 2020, 12:56:54 PM »
Yes, a cache for outline materials will be added into next beta.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5832
    • View Profile
Re: Add cache for country outlines materials
« Reply #2 on: May 22, 2020, 04:26:47 AM »
Latest beta includes many improvements to outline feature when custom width is enabled.