-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Scrolling in script editor laggy #74274
Comments
It doesn't lag when using arrow keys |
Logs don't say anything else than "Opening project" and my GPU info |
I see the noticeable and long lag second after zooming is performed, which is very annoying. |
Lines 1009 to 1012 in e5cc494
Mainly related to this code. Although the L1010 takes much less time than the L1011, the lag is mainly caused by the aftereffect of the L1010. The after-effects of modifying editor settings can be severe. |
Changing the script editor font size via Ctrl + mouse wheel should perhaps not persist the result, or only do so when the editor quits. |
I can't reproduce this on 4.0.stable (Linux, GeForce RTX 4090 with NVIDIA 525.89.02). @Wolfyxon Can you reproduce this if you force Godot to run on integrated graphics? Also, can you reproduce this when editing a project that uses the Forward+ or Mobile rendering method? |
running on v4.0.1.stable.arch_linux with RTX 3070 (525.89.02) Getting lag on all renderers. I only get lag for scripts tho - docs scroll smoothly. |
I can reproduced the issue as well. For me, godot already runs with integrated graphics by default. I tried forcing to dedicated GPU with The lag only occurs when scrolling with a mouse wheel or touch pad in the script editor. Not when dragging the scroll bar with the mouse or when viewing doc files. My setup: Operating System: Fedora Linux 37 |
The issue seems to be caused by the
Lags occur with both integrated and dedicated GPU.
Yes, It applies to every rendering method @fwsmit Do you use a compositor? Can you reproduce the bug without it? |
if you go to editor settings and turn of smooth scrolling then the editor is a lot more responsive, I have a 500 line long script and the scrolling animation lags out so bad, |
Honestly if it's working as intended on Linux, smooth scrolling should be off by default, it's really sluggish. (I forgot how it worked on Windows, it's been a long time since I touched that, lol) I have exactly the same behaviour as fwsmit but with discrete GPU:
My setup: Operating System: Fedora Linux 39 Edit: recording.mp4On a 144hz display live the scroll feels like its stuttering constantly, by the way. The recording doesn't really capture that well. |
While not directly related to the issue Wolfyxon was having, the issue of this stuttering seems to be related to the interpolation steps being too big, this can be seen blatantly by setting text_editor/behavior/navigation/v_scroll_speed to a low value like 20. I'd propose exposing the interpolation steps as an editor config in text_editor/behavior/navigation/.
If the behaviour of v_scroll_speed is what I think it is, then exposing the 0.25 so we can make it smaller could result in a smoother scroll? |
Smooth scrolling being sluggish is an issue unrelated from the one reported by OP (as OP was scrolling using a keyboard only, while smooth scrolling only affects mouse scrolling): #28385 |
I also have this issue, I tried to troubleshoot it without success, the only working solution i found is to create a new project and copy files from the old project into the new one. 2024-06-07.19-15-26.mp4What I tried: Copy - copied project folder, including .godot, .git, .gitattributes, .gitignore, project.godot and icon Working solution: New Project 2 - created a new project, copied into it only the project files i created, without copying .git .godot project.godot and without overriding files |
@AtlasDjinn Could you upload the |
I have found |
@Wolfyxon What's the value of Physics Ticks per Second in the Project Settings? |
I always use the default value: |
Godot version
4.0-stable
System information
Arch Linux 6.1.12-arch1-1 NVIDIA GeForce GTX 1650 Mobile / Max-Q
Issue description
Scrolling in script editor is very laggy while everything else works perfectly. Applies to the scrollbar and mouse wheel.
2023-03-03.08-22-16.mp4
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: