nurpax / petmate

PETSCII editor with Electron/React/Redux
MIT License
185 stars 14 forks source link

Use blob-uris instead of data-uris for <CharGrid> <Imgs> #26

Closed nurpax closed 6 years ago

nurpax commented 6 years ago

Chars are rendered using standard <img> elements with the actual char bitmap input into <img src> as a data-uri parameter.

I haven't found information on what type of optimizations is Chrome able to do on these. E.g., will it be able to cache the data-uri contents and not reload the image contents whenever it needs to paint the image.

There's some change that blob-uris might be faster.

nurpax commented 6 years ago

not needed because the perf problem was fixed in https://github.com/nurpax/petski/issues/27