Mohelm97 / screenrecorder

A simple screen recorder app designed for elementary OS.
GNU General Public License v3.0
59 stars 15 forks source link

Too much resource usage #32

Open lucaszrz opened 4 years ago

lucaszrz commented 4 years ago

Hello there. So, I'm experiencing an issue here and I would like to see if anybody is getting this too and may help.

The record works well, after finishing it, the preview looks OK and everything is good, but when I hit the save button, the app consumes basically all my laptop resource, last night I've experienced an usage of 39% of my CPU (i5-8250U) and 6,3GB of RAM (8GB total).

photo_2019-07-25_09-50-55

I have this issue recording the monitor in full screen mode, without mic sound and computer sound checked, mouse pointer and borders on, 1 second delay, 60 FPS and GIF (and MP4) format.

When trying to save as GIF, my laptop frozen and I have to restart (three times) and as MP4, I could save without freezing, but the resource usage was pretty much the same.

Here's my laptop config

Screenshot from 2019-07-25 09-53-23

If there's any additional info that I'm missing, let me know that I'll provide it to help.

Mohelm97 commented 4 years ago

Hi @Lukaszz10 , Thanks a lot for this information, I'm not sure, but how long is your record? Encoding a long video to gif could take a lot of stuff and the output file size of the gif will be very huge, so I think we should limit the length of the recording if you choose gif, try :(

lucaszrz commented 4 years ago

My recordings wasn't that long, less than one minute actually.

My problem with this was it freezing my laptop, i think it would be better to use less resource and took a longer time to encode the vídeo than using as much as it can to encode faster.

Mohelm97 commented 4 years ago

I can confirm this, I think we need to change the gif encoding method, for now just use a low framerate it could save a few GBs, Thanks a lot for reporting this. Note: I didn't manage to freeze my PC but still :D

lucaszrz commented 4 years ago

Hope this helps, I really like the app, I'll keep using it at a lower framerate as you said and wait for the update, thanks for the attention! (:

yozachar commented 4 years ago

Memory & CPU usage when the recorder hangs. Screenshot from 2020-04-16 10-36-43