High cpu usage on MAC for screen capture

942 views
Skip to first unread message

Piyush Ranjan

unread,
Feb 26, 2014, 9:03:39 AM2/26/14
to discuss...@googlegroups.com
Hi
I am facing high cpu usage while doing screen capture on chrome (30-50%). Same is not true with windows where CPU usage hovers around 8-10%. I think this may be due to windows providing lower level kernel hooks using directshow and there is no direct way to do that using OS X. Is my assumption/theory correct ?

Piyush
Message has been deleted

aaroncray

unread,
Feb 26, 2014, 2:19:42 PM2/26/14
to discuss...@googlegroups.com
sorry misread. Your video decoder and or encoder on your mac needs to use OpenGL which hooks the video card's GPU to handle encoding and decoding instead of your CPU. That said decoding and encoding at the same time will always be resource intensive. It depends on OpenGL support for your video card or your video card having the capabilities to do the encoding/decoding. Some cards might not support that functionality and therefore processing will fallback onto the CPU.

Piyush Ranjan

unread,
Feb 26, 2014, 11:32:09 PM2/26/14
to discuss...@googlegroups.com
Oh! My email was a little confusing. Let me restate:

Screensharing using webRTC on Windows 8.1 on the server side* using google chrome: The tab which is running the JS takes around 8-10% cpu usage. GPU process shows 0%

Screensharing using webRTC on MAC OS X 10.8.5 on the server side* using google chrome: The tab which is running the JS takes around 30-50% cpu usage. GPU process shows 0%

CPU usage jumps up when there is activity on screen. I have reported <inactive screen CPU usage> - <active screen CPU usage>.

Server side: I have uni directional screen sharing so I call one of the peers server and one client.


@aaroncray
That is interesting. If I can make chrome/openGL use the GPU for video encoding then there won't be any CPU overhead for encoding. That makes sense. I will get back to this thread if I find a solution.


--
 
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages