Magnetic icon indicating copy to clipboard operation
Magnetic copied to clipboard

CPU more 90%, low FPS

Open mpkupriyanov opened this issue 5 years ago • 2 comments

What's happened?

Add 12 nodes. CPU 96% http://joxi.ru/nAybJeYIgVeDOr

Add 1 node. CPU 77% http://joxi.ru/1A5XGRZFDv75P2

mpkupriyanov avatar Jul 23 '19 18:07 mpkupriyanov

@mpkupriyanov I think it's because there too many SKCropNode and cause offscreen buffer.

according to the AppleDoc:

Use crop nodes sparingly. Because they require an additional offscreen memory buffer to perform the crop and add a rendering operation into the offscreen buffer, they add notably more overhead to the app.

zyphs21 avatar Aug 17 '19 15:08 zyphs21

@mpkupriyanov I think it's because there too many SKCropNode and cause offscreen buffer.

according to the AppleDoc:

Use crop nodes sparingly. Because they require an additional offscreen memory buffer to perform the crop and add a rendering operation into the offscreen buffer, they add notably more overhead to the app.

Thanks a lot, Hanson! It is works a little better, but overhead is still huge!

mpkupriyanov avatar Aug 17 '19 18:08 mpkupriyanov