Check CPU Usage
Feel free to post any new instances of high CPU usage here.
Website: https://money.pl
In an empty instance of Orion browser, open money.pl website. Once it is loaded (need to wait until it's loaded), open new tab and make that new tab active. After few seconds, money.pl orion browser process will jump to 100% cpu usage (in Activity Monitor) and stay there until the website tab is activated again or closed. This does not happen with Safari, Brave or Vivaldi. Compatibility mode does not change anything.
Steps to reproduce:
Attach an external display to your running macbook the CPU usage increases
(This might also explain the same CPU usage increase when waking up)
Expected behavior:
No high CPU usage
Orion, OS version; hardware type:
Orion RC 0.99.125.3-rc, Macbook Air M2, Ventura 13.5.2
Image/Video:
As mentioned, it might be that this issue is related to this one. https://orionfeedback.org/d/4770-v123-high-cpu-usage-after-wakeup
My first question is, can someone reproduce this on his/her side? It might be that it is only visible if there are more than 30 tabs open and only if the Orion browser window is swapping from the internal display to the external one in the first place. Some kind of re-rendering maybe.
- Edited
To reproduce it is as simple as connecting an external display via one of the USB-Cs to my macbook air m2. It happens in both direction, when connecting or disconnecting a display. The amount of open tabs impacts the duration of the CPU spikes as each tab seems to consume CPU time individually.
Tested with Orion and Safari open with more or less the same amount of tabs. Safari is unseen in the activity list.
Here is a video: https://mega.nz/file/j1JnSZgL#BCrSddOmqXXlW3HbhQFCius4xwfEHokfNC5ltkmoGK4
(It would be cool if you could increase the upload size for videos, it is not easy to provide evidence with 80mb of video when doing a fullscreen)
I'm almost certain that this CPU usage is also what I saw when I reported high CPU usage when waking up my macbook.
This issue still persists.
- Edited
So, what I did is, I opened 150 tabs with random websites by using this Apple Script. Click through the tabs and check if they really opened the website. I guess I spotted another bug because not all websites are loaded, sometimes it takes 3 refresh clicks even.
I plugged my external screen, send the macbook to sleep for 10 seconds and the recording shows it after waking up until CPU usage goes back to normal. I did this for Safari and Orion. From the length of the video you can see already that with Orion it takes 4 minutes while for Safari it is 30 seconds.
So this high CPU usage happens in the following scenarios, for all I guess some re-rendering of Orion happens:
- Waking macOS up
- Plugging an external screen
- Unplugging an external screen
Requirement: 150 tabs are opened and not hibernated. If Orion is closed or tabs are hibernated the CPU doesn't spike at all.
I have no explanation why so many (if not all - if they could) Orion websites consume 10+% of CPU for minutes.
Video Safari
Video Orion RC
https://mega.nz/file/TgxkVJgJ#mPMQhcv3pFTLYWxsLlu8VXtNnvQvF0r4eaoaCJA13PM
This is just what I ended up with. After plugging my screen several times.
By the way, the issue persists since I originally posted the issue, if not even longer. It happens everytime so it should be rather easy to reproduce.
The more tabs are open the more CPU consumption goes up.
Overall, I think it is a re-rendering issue. Waking macOS up or plugging a screen are just different triggers for the re-rendering.
- Edited
Most simple steps to reproduce:
- Open 70 tabs with different websites open (not hibernated, the more the more prominent the issue will be)
- Plug an external display
- Move Orion to the external display (so that Orion jumps to/from external screen from/to internal screen)
- Sleep the macOS and wake it up
Doing so will cause high CPU consumption on wake up.
As to involve more people I tested it with 50 tabs open. This should involve much more people as it is more common than 150 tabs. You can see CPU consumption high for about 25 seconds per plugging or unplugging an external display.