Lurker News
Back to discussion

Comment by tambourine_man

tambourine_man1 reply#
Your apps and site look awesome, congratulations.

For whatever reason, the hero video at https://lunar.fyi/ makes Safari use 100% of all cores, Webkit.GPU goes nuts, WindowServer unresponsive… works fine on Chrome however. Monterey 12.5.1, iMac 5K, 27"

alin231 reply#
Thank you!

I think that might be because Safari uses the HEVC version of the video. I'm also seeing 25% usage on an M1 Max MacBook, which is more than I expected.
Firefox and Chrome don't have noticeable CPU usage. They only support the H264 encoded video.
I might have to reencode the video and optimize for hardware decoding. Default ffmpeg options were not enough apparently.

  -------
EDIT: it's actually because of the HDR section from https://lunar.fyi/#xdr

Safari is the only browser that can activate the HDR subsystem on these Display P3 screens, and by doing that it taxes the GPU more when playing back video.

tambourine_man#
Ah! Makes sense. Thanks for sharing