CapSoftware / Cap

Open source Loom alternative. Beautiful, shareable screen recordings.
https://cap.so
GNU Affero General Public License v3.0
4.77k stars 238 forks source link

Reduce CPU / memory usage whilst recording #109

Open richiemcilroy opened 2 weeks ago

richiemcilroy commented 2 weeks ago

Some users are reporting memory usage creeping to 5gb+ in longer recordings (2min+).

Need you to debug why this is happening, and do what you can to optimise CPU / memory usage.

You'll need to run a benchmark test, and then work to lower it.

Even better if you can first replicate the memory issues.

richiemcilroy commented 2 weeks ago

/bounty $350

algora-pbc[bot] commented 2 weeks ago

💎 $350 bounty • Cap

Steps to solve:

  1. Start working: Comment /attempt #109 with your implementation plan
  2. Submit work: Create a pull request including /claim #109 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to CapSoftware/Cap!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @ToSeven Oct 12, 2024, 1:06:41 AM WIP
ayewo commented 2 weeks ago

Which OS and what version was the issue reported against?

richiemcilroy commented 2 weeks ago

There's no specific OS I think. It seems to happen in certain scenarios.

I've replicated it on an iMac, macOS 13.5 with 8gb memory.

Others have reported issues on M2 chip, M1... macOS 15, 14.

So I don't think it's tied to a specific version

ayewo commented 2 weeks ago

I've replicated it on an iMac, macOS 13.5 with 8gb memory.

Can you please share the exact steps?

richiemcilroy commented 2 weeks ago

I started recording with webcam / mic.

Around 2 mins in, it started to increase in memory, until it reached the point where it was 8gb+ and crashed

ToSeven commented 2 weeks ago

/attempt #109