Hacker News new | ask | show | jobs
by z3t4 2364 days ago
I really wish there was a way for the browser to blit pixels to the screen in the shortest amount of time possible. Like talking directly to the GFX hardware using a restricted API like the Canvas 2d context.
2 comments

That is literally what DirectX/Vulkan is for. They are the fastest API to blit pixels to screen (surfaces/textures as they call it).
I don't have high hopes for something designed by committee.

The Chromium team are experimenting with Low-latency (desynchronized) canvas, although I haven't been able to measure any differences in latency, the only difference is that desyncronization will cause some render issues.

I guess latency is a "full stack" problem where you have to design everything with low latency in mind. eg. keyboard, keyboard driver, render framework, gfx driver, and screen.

Here's an interesting article: https://danluu.com/input-lag/

Sounds like it'd open up some security holes.