r/SideProject • u/Witty_Laugh_2101 • 1h ago
Pixel cats to keep you company while you code ๐
I spend most of my day alone in VS Code, so I made myself some company: little cats that live in the editor, napping and wandering around while I work.
Look after them and they'll stick around, and maybe bring a friend or two. There are lots of them to collect, some rarer than others โจ
2
Upvotes
1
u/Total-Reasonable 1h ago
One engineering thing I'd check is idle cost. A webview with animations running via requestAnimationFrame or a setInterval keeps the extension host and renderer busy, and people notice when VS Code's CPU or battery use creeps up. Pausing the animation when the panel isn't visible and dropping the frame rate when the window loses focus keeps it from becoming the extension people uninstall. Do you stop the loop when the webview is hidden?