-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
Blue Ocean 1.6 - beta 2, Blue Ocean - 1.6 - beta 4
The new blue ocean spinner animation for running builds creates 100% CPU usage in Chrome on my laptop, making it last ~2 hours on battery instead of 10.
The speed of the machine almost doesn't matter, it'll try to make the animation as smooth as possible.
Note this is a common problem with lots of software; Chromium had this issue with their tab notification highligts, Firefox had this problem with their spinner.
The solution is always to cap the speed of the spinner animation (e.g. to 25 FPS), or to use an animation that is designed to looks good at low FPS (e.g. using a "segmented" spinner like this one.
- relates to
-
JENKINS-53862 Blue Ocean spinner animation uses 25-50% CPU
-
- Open
-
- links to
Hi nh2, I cannot reproduce this issue, can you please provide some detailed steps on how to reproduce it? The spinner animation is done using "requestAnimationFrame" so the animation is already capped.
For reference, here is the implementation https://github.com/jenkinsci/blueocean-plugin/blob/master/jenkins-design-language/src/js/components/status/SvgSpinner.jsx#L29