Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable AutoLocalize #19

Merged
merged 2 commits into from
Apr 14, 2024
Merged

Disable AutoLocalize #19

merged 2 commits into from
Apr 14, 2024

Conversation

jackTabsCode
Copy link
Contributor

@jackTabsCode jackTabsCode commented Apr 13, 2024

AutoLocalize being on causes Roblox to do work to translate the text. As Plasma is usually used as a debug UI, this is undesirable default behavior and can sometimes cause performance issues.

We just disabled it on the create function by checking if the className desired is inherited from GuiBase2D, which is the class that implements the property. We also disabled it on some direct Instance.new calls.

Matter will need a similar PR, since we use Instance.new over there too.

src/create.lua Outdated Show resolved Hide resolved
@jackTabsCode jackTabsCode merged commit 6d497b5 into main Apr 14, 2024
5 checks passed
@jackTabsCode jackTabsCode deleted the disable-autolocalize branch April 14, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants