getify/cloud-sweeper

investigate: pinning all off-screen canvases to minimum 256x256

开放

#13 创建于 2016年2月7日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (17 个派生)github user discovery
help wanted

仓库指标

星标
 (96 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

For various performance reasons, it is surmised that canvases that are at least 256x256 can be hardware accelerated, so consider modifying the logic that deals with all offscreen canvases to use that as the minimum size (even if we only use a small part of it).

Need to first investigate:

  1. what is the real benefit of hardware acceleration for non-visible, offscreen canvases?
  2. which platforms/engines this is true for, and if the target dimensions differ in any meaningful way?
  3. if you have a 256x256 canvas but you only use a small part of it, do you still get the HA if you're drawImage()ing from it and you only take that small part?

+@petkaantonov

贡献者指南