←back to thread

56 points lnenad | 7 comments | | HN request time: 0.62s | source | bottom

Hey HN,

I built this simple puzzle generator to play around with wasm a bit.

It's open source if anyone wants to play around with the code https://github.com/lnenad/puzzlip

1. tobr ◴[] No.42127254[source]
This could be a nice distraction, but unfortunately the interaction latency makes it feel so sluggish I can’t get into flow.
replies(4): >>42127488 #>>42127545 #>>42127554 #>>42129044 #
2. tartoran ◴[] No.42127488[source]
I get no interaction latency, perhaps because I made the tile size a little larger and there are fewer tiles. Give it a try. As someone suggested, the pieces only rotate which make it easier for finishing the puzzle.
3. paulirish ◴[] No.42127545[source]
Yeah I get 100-250ms of latency between input and presentation. https://trace.cafe/t/UFXm7ASLQg
4. arcastroe ◴[] No.42127554[source]
I wouldn't call it sluggish. It's just that the tiles only update on mouseup events, rather than on mousedown events. Your own finger's turtle speed is the only source of latency ;)

But I agree that applying different styling to tiles on both hover events and mousedown events would make it feel snappier.

(I've only tried this on desktop. Haven't tried it on mobile)

replies(1): >>42127724 #
5. tobr ◴[] No.42127724[source]
That’s not the problem, although it doesn’t make it better.
6. lnenad ◴[] No.42129044[source]
What browser, OS?

On windows both Firefox and Chrome have no discernible latency for me at least.

replies(1): >>42130610 #
7. tobr ◴[] No.42130610[source]
Safari iOS.