-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Performance Degradation Moving From alpha 7 to alpha 8+ #61677
Comments
This issue is evident with GLES3 too. |
I can reproduce the results on my old work laptop (Windows 10 - Nvidia 1050TI). |
Ok, I think I managed to isolate it. If there's top_level enabled and nodes are freed or added the performance jumps off a cliff. Here's a simple script to reproduce:
|
Is 4.0.alpha8 the release that introduced the HashMap changes? If so, there's a fair chance they are the culprit. That said, I still recommend bisecting the regression. |
@Calinou The results came through and I think you might be somewhat familiar with the culprit... #51591
Joking aside, it would seem not all internal behavior went through unchanged. A typo perhaps? I'm not quite familiar with these so I'll happily pass the torch. |
Apologies, I likely missed some occurrences when performing the search and replace operation across the whole codebase. |
Should be fixed by #62220. |
Godot version
4.0.alpha8+
System information
Windows 10, Vulcan, AMD Radeon Pro 5700 XT (Driver 20.45.40.15)
Issue description
My project started suffering major performance issues when moving from alpha 7 to alpha 8+. The monitor shows spikes of > 1000ms in the "process" in alpha 8 and alpha 9 - see provided images below. I've been unable to pinpont the code that is causing the issue (see steps to reproduce)
Alpha 7:
![alpha7](https://user-images.githubusercontent.com/213037/171959270-3ead3887-90f4-4dd0-8292-914a856ec0fd.png)
Alpha 8+:
![alpha9](https://user-images.githubusercontent.com/213037/171959307-903b1db2-53f7-4ed2-bebd-075db40c9ffe.png)
Steps to reproduce
I've been unable to identify the cause of the issue, but Remi recommended uploading the project to aid with the locating the problem.
Alpha 7: https://www.youtube.com/watch?v=6q-lwBYfX4A
Alpha 8: https://www.youtube.com/watch?v=f7pWaYF2POQ&t
Minimal reproduction project
bullet-hell-master.zip
Simply hold down the left mouse button when running the above project to reproduce the issue.
The text was updated successfully, but these errors were encountered: