-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Low physics FPS makes mouse wheel scrolling in GDScript inoperable after restarting the Editor #28385
Comments
As a workaround, try disabling Text Editor → Open Scripts → Smooth Scrolling in the Editor Settings. |
This also affects OSX trackpads with normal Physics FPS speed? Related? #28369 |
I can't reproduce this on 4.0.beta12 (Linux, using standard mouse wheel and 100% editor scale). Physics FPS (now Physics Ticks per Second in the advanced Project Settings) does affect mouse wheel scrolling smoothness, but it still works when set to 240 or even 1000. I can still reproduce this on 3.5.1, but only with Physics FPS set to 1000. Scrolling still works correctly with Physics FPS set to 240, which is likely the highest practical value you'll use in a real world project. |
@Calinou Can physics fps be limited to 300 or so to prevent people setting humongous values (I dimly recall some other things breaking with values like 800 or 1000) |
I can't reproduce either. |
Very high physics FPS values can make sense for simulation racing games (fast cars need high physics FPS to remain stable), but I agree there's little reason in going past 300, even for most simulation racing games. Regarding things breaking with very high values, this can be resolved in 4.0 now that godotengine/godot-proposals#1893 is implemented there (it can be redone for |
Also can't reproduce. |
Reopening, as I can reproduce this with lower physics ticks per second values (such as 1) in 4.2.dev6. The underlying cause is the same as the previous issue with high physics FPS. Smooth scrolling shouldn't occur on physics step, but on process step (formerly idle step). This will also make it look smoother on high refresh rate monitors. |
It depends on the type of game and the requirements of the project, but 1000hz can be nice to have so putting a hard cap before 1000 could be cumbersome for some projects in my opinion. |
Godot can't clamp the mouse polling rate - it's decided by the OS. Also, I wasn't referring to dropping the polling rate below 1,000 Hz, but rather dropping it from a value above 1,000 Hz back to 1,000 Hz. Some modern mice can go up to 8,000 Hz, which uses a lot of CPU for little benefit (unless your display is 360 Hz or more). The sweet spot for 240 Hz display users is typically 2,000 Hz for instance, as this does reduce jitter measurably compared to 1,000 Hz on those displays. |
Oh I didn't knew about that, it's good to know, do you have any resource that talks about the topic?
Is this happening in scene/gui/scroll_bar.cpp? |
BlurBusters has extensively researched this topic: https://forums.blurbusters.com/viewtopic.php?f=7&t=9785
Smooth scrolling is implemented in TextEdit ( |
I just ran into this on 4.3rc1 as well. Seems like the issue could be here in godot/scene/gui/scroll_bar.cpp Lines 327 to 346 in 607b230
Where it's doing the scroll smooth animation on physics process notification instead of |
Last time I tried that, it didn't work correctly. (Also, I think |
Yes, I agree that |
Godot version:
Godot 3.1
OS/device including version:
NVIDIA GeForce GTX 1070
Issue description:
Higher Physics (tested with 700, but the number may be lower) FPS makes mouse wheel scrolling in GDScript inoperable after restarting the Editor
Steps to reproduce:
Create a new project
Project Settings > Physics > Common >Physics Fps > 700
Restart the Editor
Create new GDScript
Move cursor down, so you can scroll the script with the mouse wheel
But actually, you can't
Bugsquad edit (keywords for easier searching): mousewheel
The text was updated successfully, but these errors were encountered: