TilemapLayer#renderSettings

renderSettings

Settings that control standard (non-diagnostic) rendering.

Properties:
Name Type Argument Default Description
enableScrollDelta boolean <optional>
true

Delta scroll rendering only draws tiles/edges as they come into view.
This can greatly improve scrolling rendering performance, especially when there are many small tiles.
It should only be disabled in rare cases.

copyCanvas DOMCanvasElement <optional>
<nullable>
(auto)

[Internal] If set, force using a separate (shared) copy canvas.
Using a canvas bitblt/copy when the source and destinations region overlap produces unexpected behavior
in some browsers, notably Safari.

Default Value

  • {"enableScrollDelta":false,"overdrawRatio":0.2,"copyCanvas":null}

Source code: tilemap/TilemapLayer.js (Line 98)

doc_phaser
2017-02-14 11:16:27
Comments
Leave a Comment

Please login to continue.