[Galaxy S 5 Q&A, Help & Troubleshooting] nfsk:
After Android 5.0 update Screen Mirroring started causing serious input lag and temperature rise on the phone. Phone screen is mirrored to one of Samsung's 2015 Tizen-based TVs.

Here are the results of my benchmark showing top processes and CPU usage:

IDLE

SCREEN MIRRORING OFF

User 6%, System 9%, IOW 0%, IRQ 0%
User 30 + Nice 7 + Sys 58 + Idle 511 + IOW 0 + IRQ 0 + SIRQ 5 = 611

PID PR CPU% S #THR VSS RSS PCY UID Name
776 0 6% S 252 2227568K 134500K fg system system_server
21289 3 2% R 1 3672K 1240K shell top
187 3 1% S 1 0K 0K root irq/626-SSP_Int
151 0 1% S 1 0K 0K root spi32765
1838 0 1% S 66 1209048K 60508K fg u0_a14 com.google.android.gms.persistent
1370 0 0% S 47 1933000K 87768K fg u0_a21 com.android.systemui
2375 0 0% S 6 8480K 556K root /system/bin/mpdecision
2286 3 0% S 1 0K 0K root irq/33-cpubw_hw
8102 3 0% S 1 0K 0K root kworker/u:3
7 0 0% D 1 0K 0K root kworker/u:0H

SCREEN MIRRORING ON

User 12%, System 17%, IOW 0%, IRQ 4%
User 80 + Nice 6 + Sys 117 + Idle 429 + IOW 5 + IRQ 0 + SIRQ 27 = 664

PID PR CPU% S #THR VSS RSS PCY UID Name
316 0 18% S 60 284820K 14976K fg media /system/bin/mediaserver
776 0 4% S 253 2229172K 134908K fg system system_server
20881 3 1% R 1 3672K 1424K shell top
482 0 1% S 1 0K 0K root dhd_dpc
11622 0 1% S 16 1634280K 33112K bg u0_a22 android.process.acore
74 2 1% S 1 0K 0K root kswapd0
187 0 0% S 1 0K 0K root irq/626-SSP_Int
151 0 0% S 1 0K 0K root spi32765
1838 0 0% S 67 1210112K 60828K fg u0_a14 com.google.android.gms.persistent
18747 0 0% S 1 0K 0K root kworker/u:1

PLAYING MOVIE

SCREEN MIRRORING OFF

User 8%, System 13%, IOW 0%, IRQ 1%
User 53 + Nice 1 + Sys 82 + Idle 461 + IOW 0 + IRQ 0 + SIRQ 7 = 604

PID PR CPU% S #THR VSS RSS PCY UID Name
316 0 8% S 55 334012K 19324K fg media /system/bin/mediaserver
292 0 6% S 17 131540K 4808K fg system /system/bin/surfaceflinger
776 0 2% S 248 2213124K 143412K fg system system_server
15589 3 2% R 1 3672K 1432K shell top
1370 0 0% S 47 1909488K 83184K fg u0_a21 com.android.systemui
12494 3 0% S 1 0K 0K root kworker/u:4
2375 0 0% S 6 8480K 568K root /system/bin/mpdecision
3 0 0% S 1 0K 0K root ksoftirqd/0
553 3 0% D 1 0K 0K root mdss_fb0
15334 3 0% S 1 0K 0K root ksoftirqd/3

SCREEN MIRRORING ON

User 18%, System 19%, IOW 0%, IRQ 4%
User 134 + Nice 5 + Sys 141 + Idle 425 + IOW 1 + IRQ 0 + SIRQ 35 = 741

PID PR CPU% S #THR VSS RSS PCY UID Name
316 0 26% S 72 362844K 23872K fg media /system/bin/mediaserver
776 3 5% S 252 2215564K 144548K fg system system_server
292 0 2% S 18 157016K 5048K fg system /system/bin/surfaceflinger
482 0 2% S 1 0K 0K root dhd_dpc
16444 3 1% R 1 3672K 1432K shell top
1370 0 0% R 47 1909576K 88600K fg u0_a21 com.android.systemui
2375 0 0% S 6 8480K 568K root /system/bin/mpdecision
6 0 0% D 1 0K 0K root kworker/u:0
12987 0 0% S 1 0K 0K root kworker/u:6
1671 0 0% S 44 1089704K 38472K fg radio com.android.phone

To sum up:

When idle at home non-mirrored, /system/bin/mediaserver don't use or use little CPU. But uses 18% when mirrored to TV.

When playing video in default player non-mirrored, mediaserver use 8%, but uses 26% when mirrored to TV.

I don't know if this was the case before the update, but now videos started to be choppy when mirrored unlike when I first got my S5.

What do you guys think?