Repository navigation
Give the bot a 4-core machine and keep the page still while video plays - #96
Merged
Merged
Conversation
…ys, for #24 YouTube played "hella choppy and laggy" in a real Meet call. Recall's default bot has 250 millicores, a quarter of a core, to run Chrome, decode the video and encode the screen share at once, and Recall's docs name that as the cause of choppy output media. They recommend web_4_core (2250 millicores) for output media, at +$0.10/h, so createBot now asks for it by default; BOT_VARIANT=web goes back to the small machine. The page also competed with the video: the idle view's breathing rings kept animating at opacity 0 behind it, and the .mp4 clock was rewritten four times a second. While a video plays, the other views leave rendering, no animation runs on the stage, the caption drops its blurred shadow, and the clock only repaints when its text changes. With 4x CPU throttling and no GPU, Cue's main thread went from 14% to 7.5% busy during playback, and at 20x from 83-91% to 36%, with no long tasks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #24
Why
YouTube played "hella choppy and laggy" in a real Meet call (Tyler, 2026-11-13). Recall's default bot gets 250 millicores (a quarter of a core) and 750 MB to run Chrome, decode the video and encode the 1280×720 screen share. Recall's output media docs name too little CPU as the cause of choppy output and recommend
web_4_corefor output media (docs). The page also kept animating behind the video: the idle orb's breathing rings ran at opacity 0 the whole time.Change
scripts/recall.mjs:createBotsendsvariant: { google_meet, zoom, microsoft_teams }set toBOT_VARIANT, which defaults toweb_4_core(2250 millicores, 5250 MB). SetBOT_VARIANT=webto go back to the small machine.web_gpuis the next size up. Added to.env.example.#stage.playing):display: none, so they stop rendering instead of animating at opacity 0;box-shadow, since it can sit over the video..mp4clock repaints only when its text changes. Before, it was rewritten on everytimeupdate, about 4 times a second.disablekb=1,fs=0,cc_load_policy=0(it already hadrel=0,playsinline,controls=0,iv_load_policy=3). The IFrame API no longer lets a page pick the quality:vqandsetPlaybackQualitydo nothing now, so the embed still decodes 720p.Cost, for Tyler
web_4_corecosts $0.10/h more on monthly plans, or $0.60/h instead of $0.50/h pay-as-you-go (Recall docs, 2026-11-13).web_gpuwould cost $1.50/h. Only bots created after this PR merges and the server restarts are affected.Screenshots
None: nothing visible changes, apart from the caption's shadow while a video plays.
Verified
npm run checkpasses.?test=1, with/api/thinkmocked to sendplay_videofor Big Buck Bunny on YouTube. I measured for 25 s while playing:variantfield for this account or how smooth the video looks in Meet. One call with a YouTube link and one with an.mp4would settle it.Review
Skipped: the change touches
public/andscripts/recall.mjs, notserver.js,agent.jsor the API.🤖 Generated with Claude Code