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
High CPU/GPU usage when searching ladder #1371
Comments
So does it stop when u stop searching? |
Yes, only when searching I can see this high GPU and CPU usage. |
Funny |
For me it is 3% usage with ladder search and 0% without |
But I have some crazy fast cpu |
On some systems, hardware acceleration is used for the UI. I see 25% load (!) on a RTX 2080 when searching for a 1v1 ranked match. If that can't be offloaded to the GPU (depending on hardware and drivers), it's very likely that a CPU core is completely pegged. Edit: Confirmed. Disabling hardware acceleration for the client leads to high CPU usage instead of GPU. |
I've tried limiting the framerate to 10fps like this:
GPU usage was still over 10% and the animation was very jerky. |
Something in JavaFX is just broken. I've tried replacing the Caching the node doesn't help either and the different rendering pipelines ( Options:
|
Maybe just put one of those spinning, circular loading indicators there instead of the bar? |
Unfortunately, as described in my previous comment, that doesn't seem to help. :( Either there's a fundamental problem with animations in JavaFX, or something else is going on (e.g. some rendering loop or a driver problem). I'm planning to do some testing with a very basic app to rule that out. |
A bare-bones JavaFX application with just an |
Maybe the animation causes all other parts of the GUI to get rerendered as well as the animation or something like that. |
I couldn't find any specific problem. JFoenix and the custom styles (style.css) are fine. Removing hidden panes and elements on that tab didn't have any effect. JavaFX just seems to be fairly inefficient. Updating less than 60 times per second (or whatever the refresh rate on the user's display is) only slightly reduced CPU load in my tests and will make the animation stutter, which isn't great. I'm out of ideas. :( @JeanMars, mind sharing some details about your system (CPU, GPU, display resolution and refresh rate)? |
Yeah sure: |
When I researched that issue it seemed like this was a java fx issue and there is no solution to it atm. (from what i remember) |
A solution would be to remove the animation causing this, right? |
Yes. In the bigger context, I find it worrying that displaying a simple progress bar with JavaFX puts that much strain on a GPU (assuming that the GPU load readings in the Process Monitor are accurate). |
Yes I also find it pretty unconfusing |
Current version of the client |
@speed2CZ your problem is likely unrelated to this issue |
we now have a gif instead of the spinner. So this is solved? |
Hi,
client has an abonormal high GPU usage when searching for 1v1 ladder (see attached picture):
more than 40% of GPU resources just to animate "searching for "opponent" progress bar.
Note that CPU looks pretty abnormal too (~25%).
I would not expect this kind of resource usage for a search.
Using latest downlord release. Did not check for previous releases.
The text was updated successfully, but these errors were encountered: