Skip to content

Startup and canvas render window resize that updates devicePixelRatio is expensive #955

Closed
@Tyriar

Description

After #938

Repro:

  1. Launch xterm.js

  1. Open demo
  2. Start performance timeline
  3. Press cmd/ctrl and + 3 times

screen shot 2017-09-07 at 9 57 09 am

The reason this happens is because it redraws the char atlas, that's also the reason the time gets greater the more cmd/ctrl + is pressed (more pixels). This could be done using OffscreenCanvas and web workers for browsers that support?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions