Get the latest tech news

Running Pong in 240 browser tabs


What should you do with your unclosed browser tabs? I ran pong in mine.

We have a worker that cycles through emojis and turns them into data URLs that we pass back to the main tab, which updates the favicon. My main thread computed the state of every favicon pixel and then stuff that into the broadcast channel, which was read by hundreds of tabs. I fell back on the age-old technique of disabling different bits of code until stuff worked, and eventually I hit on the issue; I was creating hundreds of favicons a second, and that was too slow.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Pong

Pong

Photo of browser tabs

browser tabs

Related news:

News photo

Deep Reinforcement Learning: Pong from Pixels (2016)

News photo

How were 70s versions of games like Pong built without a programmable computer?

News photo

Automattic sends WP Engine its own cease-and-desist over WordPress trademark infringement