Skip to content
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

Remove unreferenced sprite from test scene #2119

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

rh101
Copy link
Contributor

@rh101 rh101 commented Aug 30, 2024

Describe your changes

For the RenderTextureZbuffer test, a new sprite is created every time the touch event ends, and then an action fades it to 0 opacity, but it remains in the scene. This ends up using more and more memory as more sprites are created.

Since the sprite is no longer required in the scene, then it should be removed.

Issue ticket number and link

Checklist before requesting a review

For each PR

  • Add Copyright if it missed:
    - "Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."

  • I have performed a self-review of my code.

    Optional:

    • I have checked readme and add important infos to this PR.
    • I have added/adapted some tests too.

For core/new feature PR

  • I have checked readme and add important infos to this PR.
  • I have added thorough tests.

@halx99 halx99 added this to the 2.2.0 milestone Aug 30, 2024
@halx99 halx99 merged commit efa3189 into axmolengine:dev Aug 30, 2024
15 checks passed
@rh101 rh101 deleted the patch-1 branch August 31, 2024 00:14
xfbird pushed a commit to xfbird/axmol that referenced this pull request Sep 18, 2024
* Remove sprite once action is complete since it is no longer required

* Add copyright notice
xfbird pushed a commit to xfbird/axmol that referenced this pull request Sep 18, 2024
* Remove sprite once action is complete since it is no longer required

* Add copyright notice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants