Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Discussion Is there performance penalty to mark all entries as "Smart"?

Discussion in 'Localization Tools' started by ibrahimpenekli, Mar 7, 2023.

  1. ibrahimpenekli

    ibrahimpenekli

    Joined:
    Mar 10, 2015
    Posts:
    26
    Hi,

    We developed a system which synchronizes localizations from our database with the Unity's localization system. Currently, we check "IsSmart" for all entries to avoid confusion and make it simple. I wonder is there a performance penalty for marking as "Smart" even if the string is not smart?

    Screenshot 2023-03-07 120245.png

    Thanks.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,388
    Yes there will be. We have to parse the string to identify the placeholders and then format them even if no arguments are provided.
    It may not be a big difference if it's just a single literal string but it will be more than if it was not marked smart.
     
    ibrahimpenekli likes this.