Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up rendering of big maps #124

Open
tmptrash opened this issue Feb 24, 2018 · 0 comments
Open

Speed up rendering of big maps #124

tmptrash opened this issue Feb 24, 2018 · 0 comments
Assignees
Labels

Comments

@tmptrash
Copy link
Owner

tmptrash commented Feb 24, 2018

Нужно ускорить рендеринг больших карт на canvas'е. Сейчас, если карта большая, то она долго отрисовуется и ips низкий.

  • Нужно отрисововать только ту часть, которая видна на экране (с учетом увеличения и прокрутки), все, что за экраном отрисововать не нужно.
  • Нужно хранить карту не в двойном массиве, как сейчас, а в битовом массиве. По 4 бита на объект. То есть, будет 16 возможных объектов. У каждого будет фиксированный цвет. Зато размер карты можно будет увеличить в 16 раз.
@tmptrash tmptrash added this to the v0.4 world complexity milestone Feb 24, 2018
@tmptrash tmptrash self-assigned this Feb 24, 2018
tmptrash added a commit that referenced this issue Apr 24, 2018
@tmptrash tmptrash reopened this Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant