71

What happened? How did it happen? What are the steps to replicate the issue.
When hovering a Youtube video or short the CPU usage spikes for several seconds. Window server and Orion CPU consumption increase. After several seconds it goes back to initial values.

My mouse pointer starts to lag even on a M2 macbook air.

Steps:

  • Open Youtube
  • Hover a short
  • CPU usage spikes

What did you expect to happen? Describe the desired functionality.
It should not consume so much CPU. This wasn't the case before this RC.

What version of Orion are you running?
0.99.125.6-rc (WebKit 618.1.1)

  • Vlad replied to this.

    rosenrot Please test from a new clean orion profile and compare behavior with Safari.

      8 months later
      Merged 2 posts from Youtube Preview leads to high CPU consumption.

        Hey everyone

        I merged a bunch of 'high CPU usage' posts into this one thread. We would like to get to the bottom of this.

        If you are posting about perceived high CPU usage in Orion please follow this procedure to make it useful for us:

        • Start a new clean Orion profile
        • Note exact steps to reproduce perceived high CPU usage
        • Repeat those same steps in Safari

        If Orion usage is significantly more than Safari's, post the details here. A video documenting all steps and your methodology would be fantastic.

        Thanks!

          Vlad stickied the discussion .
            Vlad changed the title to Check CPU Usage .
              4 days later

              @Vlad finally we are addressing this issue. Here you go. 26 tabs are open in Safari and Orion. I opened the same tabs in both. I drag the windows from the internal screen of my macbook to my external screen and vice versa. First Safari, then Orion.

              One can see the CPU spikes much higher when doing this with Orion. As each website seems to consume CPU when the window was dragged. This gets worse as there are more tabs. It has something to do with how Orion draws its tabs as this can also be seen when opening my macbook when connected to an external screen - when Orion jumps from one screen to the other.

              Please note, the two screens have a different resolution. You can see the windows changing size when dragged.

              https://mega.nz/file/X8p00bgT#fWTY7PSNlnHisgWa16M8XarI1HwM0iMOw73lBVWma-w

                Leaning back and watching the video actually unveils the laggs Orion undergoes when dragging its window when compared to Safari.

                  Noticing @rosenrot and I had slowdowns with around the same number of open tabs. Maybe some data structures overflowing some cache and thrashing after a certain number of tabs are active?

                  I noticed a somewhat non-linear slow when going from tabs in the low-20s to high-20s the other day (was running Version 0.99.127.3.2-rc). Didn't know why the system felt so sluggish at first so I started through my "todo" tabs in preperation to reboot and only noticed after I worked through a few tabs that the system felt so much faster. Unfortuantely didn't have a chance to capture more details in the moment so didn't report it.

                  FYI, these notes are from running on a MacBook Air with the i3-1000NG4 processor which has 512KB/core of L2 cache and 4MB of L3 shared across both cores.

                  I realize this system has a low-end processor so trying to focus on issues that might be applicable to other people -- either when Orion runs away with the CPU or non-linear slowdowns.

                    6 days later
                    • Open https://www.triumphrat.net in Orion

                    • Check CPU consumption, for me it shows 30%

                    • (Doesn't happen in private mode)

                    • Safari shows a similar CPU usage but once the window is not in active, CPU consumption goes to zero.

                    I don't know what causes the high CPU usage but as Safari has no CPU usage on this website once Safari is not in foreground, that would maybe something nice to implement in Orion as well. Depending on what causes the CPU usage might be not necessary to be done when the tab is in background.

                      rosenrot I see the same with Version 0.99.127.3.3-rc (WebKit 619.1.11.111.2)
                      Build date Jun 13 2024 on Catalina. And whatever that website is doing to Orion, Orion is also doing to my WindowServer process. Even if nothing would appear to be happening onscreen. Also I am seeing this in private mode -- I actually open almost all windows in private mode anyway.

                      By the way, was there an option to Suspend Tab under Tools? I can't find this option now and not sure it disappeared when I reset everything last night or I just didn't notice it disappeared with one of the past updates?

                        13 days later

                        @Vlad anything else needed to start investigations on this matter? Is there already something happening in the background? I‘m more than happy to provide further feedback if needed.

                          9 days later
                          Vlad unstickied the discussion .

                            Hi, are there any updates? This is such a long thread which suggests that there is some pain for Orion users - I would love to see the high CPU usage being addresses.

                            Anything I can help you to further investigate?

                            • Vlad replied to this.

                              Vlad here you go.

                              About 20 pages are opened in both browsers, Orion and Safari. Orion has a new profile. There is not much to go into details here as this happens for any websites. The more websites are open the higher the CPU consumption gets. As easy as it gets to reproduce.

                              I'm moving the browser window from one screen to the other and the CPU usage spikes 2.5 times higher for Orion.

                              This issue is not only about dragging the Orion window but also causes high CPU usage when connecting an external screen (Orion browser jumps to the new screen) or when waking up from sleep (Orion browser jumps to new screen). The more tabs are open the more prominent the CPU consumption gets.

                              5 days later

                              I have noticed this happening too. It happens with the first pinned tab if I keep it open for too long. It becomes completely unresponse, and the only way to fix it is to force the process to quit or in some cases suspend the tab. I thought it was a problem with this site at first, but I also noticed it happens with other sites too.

                              It may not be useful, but I have attached a sample of the process.

                              sample-of-orion-web-content.txt
                              145kB

                                craig Steps to reproduce from a new clean orion profile?

                                  From time to time I see websites that have been open in Orion for days, suddenly consuming a lot of CPU for whatever reason. In this case it is Renesas websites, I have 7 open and 3 of them randomly spike in CPU usage.

                                  I have already seen this several times, which is why I use a CPU indicator in the menubar to prevent Orion from emptying my battery.

                                  I can't provide steps to reproduce it. Here is a sample, not sure if it is of any help.

                                  sample-of-orion-rc-web-content.txt
                                  178kB

                                  I'm posting this here as someone else might have seen similar things happening.

                                  In this specific case, I refreshed one page after the other, and it turned out that all 3 high CPU tabs have been showing PDF files, so I guess that it might be related to PDF. However, I'm just a user, not a developer - so I'm just guessing here.