22 fps, then 7, then smooth — LVGL on a TV CPU
CouchDeck's webOS client in C and LVGL: three live iterations on an LG TV's CPU, and the one rendering rule that came out of them.
Read “22 fps, then 7, then smooth — LVGL on a TV CPU”CouchDeckSeptember 5, 20261 min read
Battlefield 6 keeps its process alive for 70 seconds after its window closes, so CouchDeck's stream curtain follows four events instead of two.
CouchDeck streams a gaming PC to a TV and promises one thing: you never see the Windows desktop. The stream starts under an opaque curtain, and the curtain lifts only when the game is actually on screen.
The first version had two events from the PC agent: starting and exited. Lift the curtain on the first, drop it on the second. Simple, and wrong.
Battlefield 6, on quit, closes its window and then keeps its process alive for about seventy seconds — shutting down anti-cheat, flushing telemetry, whatever it does. For seventy seconds the stream showed the desktop, because as far as the agent was concerned the game was still running.
So the run wrapper now emits four events: starting, running, closing, exited. running means a window exists — the curtain lifts. closing means the window is gone — the curtain drops, regardless of the process. exited means the stream can be torn down and the TV can return to its own library.
The other half of the fix is on the client. It takes its event cursor once, at the moment it requests the stream. A client that connects late can’t replay the previous session’s running and lift the curtain on a desktop frame.
The process still has its two events, starting and exited. The curtain listens to the other two.
CouchDeck's webOS client in C and LVGL: three live iterations on an LG TV's CPU, and the one rendering rule that came out of them.
Read “22 fps, then 7, then smooth — LVGL on a TV CPU”CouchDeck pairs a TV with no digits typed. Once a script confirms the PIN instead of a human, the clock becomes a security boundary.
Read “The pairing window that got longer after login”