Skip to content
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

Project Settings Physics FPS effects Editor Script Editor Scroll Speed #47934

Closed
FeralBytes opened this issue Apr 15, 2021 · 3 comments
Closed

Comments

@FeralBytes
Copy link
Contributor

Related to but different than #39841

Godot version:
3.3-rc6-rc9 and likely many prior.

OS/device including version:
Linux Mint 20.1 Cinnamon x64 / Desktop
Linux Kernel: 5.4.0-70-generic
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
CPU: AMD Ryzen 9 3900X 12-Core Processor × 12
GLES 2 or GLES 3

Issue description:
In the editor the script editor is slow to scrolling and skips/jumps, like it is running at 1fps. Because the Project Setting: Physics > Common > physics_fps = 1.

Steps to reproduce:
In project settings change Physics>Common>Physics_fps = 1 and then save and restart the project, now observe upon editing a script the scroll is extremely sluggish, like 1 fps sluggish. Put it back to 60 and save, then reload the project and all is fixed.

Minimal reproduction project:
Any project with a script long enough to scroll will do.

@FeralBytes
Copy link
Contributor Author

Suggested Fix: The project settings should not affect the editor. Or at the very least should not affect editor functionality. I really can't think of why the text editor is running on the _physics_process() calls anyways as compared to the _process() method.

@smix8
Copy link
Contributor

smix8 commented Apr 15, 2021

I really can't think of why the text editor is running on the _physics_process() calls anyways as compared to the _process() method.

I guess because physics tickrate is fixed (to the setting) while process runs with your framerate. If you have a monitor with very high refreshrate or vsync disabled many editor functions would update a few hundred times each second with _process() which is complete overkill.

@Calinou
Copy link
Member

Calinou commented Apr 15, 2021

Duplicate of #28385. As a workaround, disable smooth scrolling in the Editor Settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants