itsajoke | 5 years ago | on: The iPad's new cursor and keyboard
itsajoke's comments
itsajoke | 5 years ago | on: No cookie consent walls, scrolling isn’t consent, says EU data protection body
But I personally love these warnings and consent messages. I wish there were more of them! I wish there was a consent message before any kind of cross-origin action was allowed. Can you imagine how many there would be on any sites that use ad networks?
itsajoke | 5 years ago | on: Bats in Portuguese Libraries (2018)
itsajoke | 5 years ago | on: Post Mortem on Salt Incident
itsajoke | 5 years ago | on: Humans Not Invited
itsajoke | 5 years ago | on: Show HN: Canvas engines performance comparison – PixiJS, Two.js, and Paper.js
itsajoke | 5 years ago | on: Strike: A web-based, 1-bit paint tool
[1] https://developer.mozilla.org/en-US/docs/Web/API/PointerEven...
itsajoke | 5 years ago | on: Strike: A web-based, 1-bit paint tool
However, this other website [2] is showing me events on the order of up to 124 Hz. Either that site is doing something special or it's lying. The JavaScript there is decently obfuscated. I'm going to spend a few minutes trying to deobfuscate it and see what I can find out.
[1] https://www.vsynctester.com/testing/mouse.html
[2] https://zowie.benq.com/en/support/mouse-rate-checker.html
itsajoke | 5 years ago | on: Strike: A web-based, 1-bit paint tool
This is my white whale.
I don't currently have the math chops to fix this in my own implementations, but there are others who have succeeded where I have failed. For example, the web client/controller thingy for the game Drawful 2 by Jackbox has addressed this. Since you can't increase the polling rate in the browser and you can't arbitrarily read the mouse position during things like requestAnimationFrame, you're forced to interpolate the movement of the mouse given the past few events. They're using curves in Drawful 2 instead of straight bitmap-style canvas drawing like in the first Drawful.
But beware, this has a downside. It's very easy to incorrectly interpolate the movement and exaggerate the curve, making it curvier than the actual movement of the mouse.
I guess the web browser just wasn't designed with precision input capture in mind. But that doesn't mean we can't still aim for improvement. For a game like Drawful, more options are probably overkill. (They don't allow you to erase by design.) But for an art tool like this, it might be worth adding an option for input smoothing along with knobs to tweak to adjust the smoothing amount. Or not. I certainly can't fault you for not implementing such a feature given that I can't seem to get it to work.
itsajoke | 5 years ago | on: Hot Reloadable Structs: Memory Mapping
itsajoke | 5 years ago | on: Lighting controlled by a OralB Bluetooth toothbrush
itsajoke | 5 years ago | on: We need more video games that are social platforms first, games second
itsajoke | 5 years ago | on: Is APL Dead? Not anymore
Anecdote: when I saw that Python 2.x was reaching end of support, the contrarian in me thought, "finally it'll be stable enough to use"
itsajoke | 5 years ago | on: Operating Systems Without Systemd