3 ms·
ah hi! I made this! was wondering if this one would appeal to the HN crowd :) Happy to answer any questions! And here are a couple of scattered thoughts:
by eieio 2y ago
ah hi! I made this! was wondering if this one would appeal to the HN crowd :)
Happy to answer any questions! And here are a couple of scattered thoughts:
* I'm really interested in what this looks like if you use animations (firefox supports animated favicons) - I could, for example, anticipate future ball positions and create animated SVGs to get a much nicer framerate.
* A friend pointed out offline that canvas rasterization (typically) is on the GPU, which is probably why my performance intuitions with my stuttering animation were so wrong
* I am only moderately confident that chrome caps favicon updates to 4 a second; I know there are a lot of different ways to update favicons and I could have missed something here!
- dataviz1000 2y ago> A friend pointed out offline that canvas rasterization (typically) is on the GPU, which is probably why my performance intuitions with my stuttering animation were so wrong Did you solve it? A great resource is Jake Gordon's blog on simple JavaScript game design. He uses a double buffer front and back canvas game loop. [0] https://jakesgordon.com/writing/javascript-pong/part1/ https://jakesgordon.com/writing/javascript-pong/part1/
- eieio 2y agoSorry yeah I'm talking very specifically about the stuttering that I first saw when making a square move into the tab bar. I was doing something inefficient (updating all my favicons many times a second), but I didn't really understand why that would cause stuttering in my foregrounded tab. My thought process was that the favicon stuff was happening in different tabs in different threads, and so it didn't make sense to me that the thread in charge of the foregrounded animation should suffer (unless my entire computer had slowed to a crawl and everything was getting slower - but it hadn't). And my friend's point was just that i was probably GPU-bound and not CPU-bound (or at least I could be) and so I was not thinking about the original problem correctly.
- deleted 2y ago[deleted]
- uranium 2y agoAs one ridiculous-pong writer to another, I love your work. I really enjoy this kind of technical performance art, both to write and to view. It may also be part of why I juggle: "There must be a harder way to do this."
- eieio 2y agowhat’s your pong game? would love to see it
- WastedCucumber 2y agoI was curious too, I guess it must be this one. https://news.ycombinator.com/item?id=19155205 https://news.ycombinator.com/item?id=19155205
- adamgordonbell 2y agoLove it and man your output velocity is something else! This, the global cap locks, the bad apple regex, the uuids, and more all since the 1 million checkboxes. I'm impressed with your hustle.
- eieio 2y agoah thanks adam! fun to see you here :)
- OneLeggedCat 2y agoNow I want to see Doom in browser tabs.
- Tr3nton 2y ago[dead]