-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce memory usage: do not allocate memory for the transform layer for single layer images #7233
Reduce memory usage: do not allocate memory for the transform layer for single layer images #7233
Conversation
Rework most image processing functions to work with singleLayer images without 'transform' layer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy
found issue(s) with the introduced code (1/3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy
found issue(s) with the introduced code (2/3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy
found issue(s) with the introduced code (3/3)
…r, change while loops to memcpy/fill
… effect (Battlefield)
…actCommonPattern() to properly work with single layer images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Districh-ru , I left several comments in this pull request. Would you mind to take a look at them?
…nsformPixel()' (disable transform layer instead and update only image data layer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy
found issue(s) with the introduced code (1/1)
Closing this PR in favor to #8241 |
This PR disables the
transform
layer for images that are set assingleLayer
and reworks the image processing functions not to work with this layer for such images.For 1366x768 resolution with opened View World for XL map the engine takes 72 MB, in master build - 82 MB.