📜 ⬆️ ⬇️

Measurement of the speed of work with the canvas (canvas)

[FreeCiv screenshot]

The Freeciv.net team measured the speed of their game code on canvas . This is a single result, and it checks more than the canvas itself, since there is a lot of code in the game. Therefore, in the end, both the speed of execution of a particular branch of javascript and the rendering speed on canvas were measured.

Here are the results:
')
[screenshot of results]

With Bespin we had slightly different results, and the basis of the bottleneck was the blitting of the canvas. And optimizations were made to the canvas following the results of the first stage of Bespin, so that different browsers play leapfrog with each other. I wish you a pleasant stay :)
Translator's Notes:

1) Internet Explorer 8 does not support <canvas>, and the Excanvas library was unnecessarily slow , so FreeCiv developers composed their own highly specialized crutch in Java, DHTML and <div> elements with clipping of their background. Its speed and tested in IE8.

2) Georgian flag on the screenshot :-)

Source: https://habr.com/ru/post/82362/


All Articles