Interaction with Script Editor really laggy on Windows

Whenever I open a script in studio I experience lag when moving my mouse or typing, but it only occurs in the script editor. I normally experience no lag when using studio’s script editor, but now it is occurring every time. It makes it extremely difficult to write code to the point where I’m just pasting the code from another text editor.

Steps to reproduce:

  1. Open any game in Studio (Could even be an empty baseplate)
  2. Create a Script object in any Explorer section i.e. Workspace, ServerScriptService, etc
  3. Double click to open the script
  4. Attempt to move the mouse or type while the script’s tab is open

Video showing issue: https://www.youtube.com/watch?v=o2gx_ncob8A&feature=youtu.be

I’m using a PC running Windows 10 (Not the Mac issues that had previously occurred) and I’ve tried reinstalling several times.

System specs:
CPU: i7-8700K @ 3.7 GHz
GPU: Nvidia 1080-Ti
RAM: 16GB
OS: Windows 10 Pro

I uninstalled ROBLOX Studio last week and just reinstalled it yesterday and this issue started happening.

27 Likes
  • Does this happen with all plugins uninstalled?
  • Does this happen with autocomplete disabled?
3 Likes

Yes, it occurs in both cases.

1 Like

Can you attach microprofiler info / task manager screenshots? Instructions:

2 Likes

Sure, here’s the CPU graph
And here’s the microprofiler info:
microprofile-20190205-123328.html (842.0 KB)

These were taken in a ROBLOX game while also having studio open

1 Like

I’m having the same problem. Is any solution available? It makes developing impossible.

CPU: i7-7820X
GPU: Nvidia 1080-Ti
RAM: 32GB
OS: Windows 10 Pro

A workaround is to unparent the script tab from the main studio window.

1 Like

Having the same issue as well on both my systems… On system 2 however this goes as far as causing studio to lock up fully forcing me to do a hard reset…

System 1 (Dell Precision T7500 - No longer affected by issue):
2x Xeon X5690
64GB of RAM
nVidia GTX 980Ti

System 2 (MSI GS70 2PC STEALTH):
i5-4200H
GTX 860M
10Gb of ram

Both run Windows 10

1 Like

If you disable the “Enable Autocomplete” setting, does this stop?

5 Likes

Having the same issue, except GPU is exceeding 78%+ during the lag, but I can’t screenshot since the lag freezes my whole PC

Windows 10
AMD Ryzen 5 2600x
AMD Radeon RX580
16gb of ram @3000mhz

EDIT: I disabled “Enable Autocomplete” in the settings (suggested by @Subcritical_alt) and it was successful in fixing my issue

We’re unable to reproduce at the office, so it’d help to have some more information in order to track this down. Can someone:

  • Make sure all instances of Studio are closed
  • Win+R, regedit
  • Go to Computer\HKEY_CURRENT_USER\Software\Roblox\RobloxStudio
  • Right click “RobloxStudio” in the left pane and select “Export” (remember where you export it)
  • Once exported, Right click “RobloxStudio” in the left pane and select “Delete”
  • Open Studio. If Autocomplete is disabled, re-enable it and restart Studio
  • See if you can reproduce the issue
  • Once done, close Studio and double click the exported registry backup to restore your old data

Does this also stop the issue? If yes, can you zip up the reg file and PM it to me?

3 Likes

Seems to be a lil’ bit better on system 1 it no longer lag (the issue vanished as if nothing happened) but on system 2 (see my previous post here if you don’t know what I am referring to) I have not yet tried disabling autocomplete.

Anyways I’ll try getting a .reg dump from System 2 (as the issue is no longer occurring on system 1)

Edit: PM Sent.

EDIT: I found a temporary workaround. Moving the script editor tab to its own window allows me to edit the script without lag. If the tab is in the same window as the workspace editor, the lag resumes.

The problem…
When I edit any script in any place I experience massive lag which makes editing scripts impossible. I have no plugins installed, and no other apps open. It happens even if auto-complete is turned off. It happens even on a blank baseplate.

My CPU performance under the Resource Monitor claims to average just 4% while editing.
Despite this, my monitor flickers slightly, my cursor lags, and text input is delayed by more than a second.

This doesn’t happen in any other application or text editor. Just Roblox Studio 64 bit.

Here is my microprofiler dump. The Perform and Present spike incredibly hard when I open the script editor, but when I’m just viewing the workspace, the readout is typical.


microprofile-20190324-152340.html (1.2 MB)

Here are some specs
image
Graphics card: Nvidia GTX 1080-Ti

Let me know soon what I can do to get this working again. Currently at a standstill. :slight_smile:

1 Like

Hey Nvidia card guys @devTools @TheAddictPlayer @Destrings
For anyone still experiencing this issue, I found that disabling Nvidia’s Gsync circumvents it, might work for you too.

18 Likes

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