Interaction with Script Editor really laggy on Windows

GSync was already disabled on both my systems… The first system has a CRT (old but still going like a champ) monitor attached and with GSync enabled I would get not only lag in Studio but in Windows as well.

But yeah still going to note this as well.

Gsync did the trick! Hope they fix issue soon, it sucks to have an expensive feature disabled due to Roblox incompatibility.

2 Likes

Turning off G-Sync worked for me as well just now, still kinda surprised this hasn’t been fixed yet as G-Sync is a very nice feature I use on all of my Steam games.

3 Likes

Aaaand it’s back again, and to make the matters worse it slows down up until it stops responding (and gsync is disabled on both systems, it only crashes on my Dell T7500)

edit: Nevermind, I just re-enabled GSync and the issue vanished, after I updated my drivers to the version 430.39, probably a long shot but at least for me it worked on the T7500, on the MSI however it doesn’t do anything (possibly owing to the fact that it has Intel HD Graphics as the ‘main’ GPU…? it seems to happen when I run studio on the GTX 860M…)

1 Like

I was told by EchoReaper that you can toggle Gsync per-program, might be worth investigating.
I turned it on for Fullscreen applications only, which is pretty much every video game I play.

1 Like

I have this same issue, and dragging the script editor out of the window (Snapping it away from the tab bar) stops it from lagging.

4 Likes

Description
I have a “Large” script that I use for all the pathfinding in my game. It consists of about 2k lines which really isn’t that much, but recently I have begun noticing Studio start to chug when I begin typing more code. Studio idles around 5% - 7% CPU when I am just reading my scripts, but then when I begin typing it jumps to 30% to 40% and then I can begin to feel studio lag behind.

If you can type quick you will notice that you are typing much faster than Studio can keep up. This makes it a little slow to use the auto complete, as you have to wait for Studio to catch up.

Reproduction Steps
To reproduce this just open a large script, any script with 2k lines of code or more. Begin typing in those scripts, you will feel it chug. It gets more and more slow the more lines you add.

Microprofile Dump
microprofile-20200328-161706.html (2.8 MB)

Gifs and Screenshots
I copied my code multiple times to make the script larger, about 7k lines of code. I don’t know who would have 7k lines of code in one script but its possible I guess haha.

Heres a gif of me scrolling, youll see the CPU usage spike a lot but Studio still runs fine, it only lags when typing.
Studio
https://gyazo.com/edcdf1143e9ea24921e31af5becbd930

CPU Usage
https://gyazo.com/812aafeb3e79208a7cd97e405ae51210

Now here is a gif of me typing and you will see the CPU Usage jump. The video isnt lagging, that is literally how it is in Studio.
Studio
https://gyazo.com/50a1049d2df7121c841bd942b94ad02a

CPU Usage
https://gyazo.com/69c5877695eab4129f4222c89c01c64f

System Information
AMD Ryzen 3 2200G With Radeon Vega Graphics @ 3.5Ghz
16GB RAM
AMD Radeon ™ R9 Fury Series (R9 Nano)

Extra
I know many people wont have a 7k line script, but the problem is that this starts happening around 1k. If you type fast you will totally start to feel it chugging around 1k and It just gets worse and worse after 1k. I have used other code editors before and they can handle 20k lines of code smoothly. Studio seems to cap out at 30% CPU Usage it seems. So maybe there is a performance limiter built into Studio. I am aware of a performance limiter when you are playing games on Roblox, but I wasn’t aware of one while in Studio not playing anything.

Maybe it is poor optimization on AMDs end? I am I die hard fan of AMD but I will admit they arent the best when it comes to drivers, so it could be AMD?

Thank you and I hope you have a great day!

4 Likes

Having a similar problem as well, although my entire studio lags, like camera movement and stuff. Any script I open lags, despite the number of lines.

Running a beefy 1080 Ti with lots of system RAM so I highly doubt it’s an issue on my end. Odd.

2 Likes

I have the same exact issue, but my script is only 5k lines long.

Found any fixes?

1 Like

Nope its an internal bug, I don’t think there is much we can do. The only real “solution” is to split it up into multiple scripts and try to follow the D.R.Y rule to minimize the amount of code.

Aww…

What if I used Rojo? Would another script editor fix this issue?

Yea, 3rd party script editors can handle 10s of thousands of lines of code.

Still having this issue, and many of the previous fixes mentioned (like disabling G-Sync) didn’t work. Only thing I tried that worked was the idea of popping the script out of the main window. Is there a more permanent fix than that yet?

1 Like

I have the same issue.
The way I dealt with it was pulling it out of the window.
But now for me studio its self is lagging and it’s getting worse. I can not build now.
This all keeps worsening after updates.

1 Like

I’m just now experiencing this issue, but disabling G-sync seemed to work for me. Why does G-sync not cooperate with script editor??


Not sure why but this only happened to me after I added “.Parent”

(Update: turned out it also start lagging no matter what I typed after the dot, also replacing the second line with a comment stop the editor from lagging

I know its been a while but this still works.

I am having this issue with my 27K line script… roblox studio takes about 20-30 seconds to type anything making it almost impossible to work on at this point I am going to have to use note pad to edit it… and recent updates have only made it worse. If this could be fixed that would be nice.

This has been a problem for a while now. Definitely on FreeSync at least.

i think it’s lagging just because its so many lines… very bad practise to have so many liens in one script… consider using modules :slight_smile: