fix large memory usage

This commit is contained in:
Anton Lavrenov 2024-01-26 11:08:12 -05:00
parent abfdf7153f
commit 76cace8b38
2 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
### 9.3.2 (2024-01-26)
- Fix large memory usage on node export
### 9.3.1 (2024-01-17)
- Fix Pixelate filter work/fix caching size

View File

@ -1933,8 +1933,10 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
context = canvas.getContext();
const bufferCanvas = new SceneCanvas({
width: canvas.width,
height: canvas.height,
// width and height already multiplied by pixelRatio
// so we need to revert that
width: canvas.width / canvas.pixelRatio,
height: canvas.height / canvas.pixelRatio,
pixelRatio: canvas.pixelRatio,
});