Skip to content

Fix iOS GPU idle-exit killing WKWebView streamer before video#292

Merged
capy-ai[bot] merged 1 commit intokief5555/iosfrom
capy/fix-ios-gpu-idle
Apr 13, 2026
Merged

Fix iOS GPU idle-exit killing WKWebView streamer before video#292
capy-ai[bot] merged 1 commit intokief5555/iosfrom
capy/fix-ios-gpu-idle

Conversation

@Kief5555
Copy link
Copy Markdown
Collaborator

@Kief5555 Kief5555 commented Apr 13, 2026

This PR adds a WebGL keep-alive loop in buildHTML that runs until video starts playing, preventing iOS from killing the idle GPU process during the WebRTC negotiation window. The GPU process launches when the streamer is presented but has no work to do until frames arrive; without active GPU work, iOS terminates the process (IdleExit), crashing the WKWebView before streaming can begin. The IIFE creates a minimal 1x1 WebGL canvas, runs a gl.clear() loop via requestAnimationFrame, and tears down on the first playing event.

Open in Capy OPEN-14 · Sonnet 4.6

@Kief5555 Kief5555 added the capy Generated by capy.ai label Apr 13, 2026 — with Capy AI
Copy link
Copy Markdown
Contributor

@capy-ai capy-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 1 comment

Comment thread ios/OpenNOWiOS/OpenNOWiOS/StreamerView.swift
@capy-ai capy-ai Bot merged commit 510fb42 into kief5555/ios Apr 13, 2026
@capy-ai capy-ai Bot deleted the capy/fix-ios-gpu-idle branch April 13, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capy Generated by capy.ai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant