3 ms·
You can already get nearly pixel-perfect consistency by rendering each character as a separate dom element at specific X-Y coordinates. Then the browser isn't
by londons_explore 6y ago
You can already get nearly pixel-perfect consistency by rendering each character as a separate dom element at specific X-Y coordinates.
Then the browser isn't responsible for line wrapping or anything.
It has the benefit you can still use the browser for GPU acceleration and calculation of damage rectangles.
I'd also question how important identical cross-device rendering is in todays world of vastly different screen sizes.
- sime2009 6y ago> You can already get nearly pixel-perfect consistency by rendering each character as a separate dom element at specific X-Y coordinates. You could do that for every character, but the size of the DOM and updating it will kill your performance. You're better off just drawing the characters yourself into a canvas then.