Reproduction Steps
I did some test on a Baseplate where I input 22K lines of code of:
print("Hello World")
and that’s where it started for autocomplete to lag. At around 10K lines of code, it still doesn’t lag but I think it’s because my code has a lot more characters than this code.
autocompletebug.rbxl (34.5 KB)
I also have sent the private content, the module script that has 11K lines of code to Logs / Crash Dumps / Other Bug Files group.
When does it happen?
This bug happens right after the autocomplete feature has been updated. I was not online a day after but 2 days after the update, I opened a specific script that contains 11K lines of code which did not lag a while before the update but now it takes 1 second to open the script and also 1 second for the autocomplete to log in.
Took like 1-2 seconds before I can see the keywords. I usually just “enter” and the keyword is there.
Only 1 script that has 11K lines of code lags the autocomplete. I believe this may also have happened is because my code isn’t as organized and optimized as it should be. (Like how user.HumanoidRootPart.CFrame
is being repeated)
But take note that it really only happens right after the autocomplete feature has been updated.
Workaround
I did try to fix this by making a version 2 module script that connects the code so I can code as fast as I did before. (I only have 1 module script that handles all the skills but I made another module script that will contain the new skills I will implement in my game)
A fix could be to have a way to hide certain features the new autocomplete has.
Issue Area: Studio
Issue Type: Other
Impact: Medium
Frequency: Constantly
Date First Experienced: 2022-01-29 00:01:00 (+08:00)
Date Last Experienced: 2022-02-02 00:02:00 (+08:00)