Massive Slowdown/Freezing/Crashing When Editing Long (3k) Scripts With Autocomplete Enabled

As of today (Was working fine earlier yesterday), I’ve been experiencing studio freezing and locking up from anywhere between 0.5-10 seconds, depending on the area of the script edited, whenever ANYTHING is typed in some of my longer scripts which are close to 3k lines in length.

Disabling autocomplete resolved this issue completely and this behavior was replicated by @Garnold when I sent him one of my scripts that were causing me issues. If required, I can message the same script over to help resolve the issue.

7 Likes

I’m getting this problem too, it seems like it could be a problem with intellisense when there are lots of variables defined. I noticed this problem a while ago, but thought it might just be me having this problem as a few other people I knew didn’t have this problem. It’s good to know I’m not the only one with this problem.

1 Like

It’s hard to see in the gif how sluggish it is, but pay attention to the intellisense having the black box for a few frames and non autocomplete words appearing instantly instead of appearing typed out.

The lag only seems to occur when typing near the bottom of the script, lines typed near the top don’t have noticeable lag.

I’m also having this issue as of today, turning off autocomplete / intellisense setting is fixing the problem for me.

  • Tested it on en empty baseplate with 1 script, 1800+ lines with autocomplete on had lag, turning it off fixed it.
  • In my Apoc 2 file I get the lag in 500+ line scripts, turning off autocomplete fixes the lag.

script editor lag repro.rbxl (12.7 KB)

To run the repro turn script autocomplete on, open the script in ServerScriptService and try to type code that can be auto completed, observe the lag. Turn off script autocomplete and the lag goes away when you repeat the test.

1 Like

I’m getting this as well. So is @Atrazine

I have been experiencing this with most scripts over 1,000 lines long. I’ve tried restarting my computer, restarting studio, transferring scripts to a blank place, and this issue has still persisted.

Also have this

I am also having the same problem.

I’ve started to experience this issue as of recently, although not to the extreme of studio freezing or crashing, but there is a significant and noticeable lag when editing my script with 2.2k lines of code.

This was not an issue about 2 months ago (perhaps around the time Luau and Intelliense were receiving updates) and I was able to edit this same script with over 2k lines of code without any problems.

These are my system specs:
Processor: Intel i7-4790k @ 4.00 GHz
Graphics: NVIDIA GeForce GTX 1080
RAM: 16 GB
OS: Windows 10 Home Version 1903

Below are gifs and screenshots of my settings during each test to demonstrate where the performance loss appears to be coming from.


The most lag is experienced when all of these settings are enabled.

image

https://gyazo.com/c92e5496a7bbd0186163138b21d4e22f.gif


When Enable Autocomplete is disabled, there is an immediate improvement in performance, but it quickly diminishes when it reaches auto completing parenthesis.

image

https://i.gyazo.com/d73139d65ab749622e75ee6fa79b5592.gif


When both Enable Autocomplete and Auto Closing Brackets are disabled, there is seemingly no loss in performance. The lag that does occur is as a result of creating a new line when the function is auto completed.

image

https://gyazo.com/56e88412ca64fda658f8e85411f4079a.gif


With all 4 editor related settings disabled, simply creating new lines and deleting lines has a significant performance hit as well.

image

https://gyazo.com/a5434e84a0eae65c4fbf651a829d858b.gif

2 Likes