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

Modify FlxText to create a bitmap with an informative key. #3181

Closed

Conversation

EliteMasterEric
Copy link
Contributor

In the past, I've had to look over the list of graphics in the BitmapFrontEnd cache to determine the cause of memory issues.

In this circumstance, having readable keys is important; for example, if one bit of text appears in the cache a lot, there may be something forcing it to re-render too often.

This PR changes auto-generated graphics created by FlxText to include the actual text in their key (text123 will instead be text(Hello World)123). This shouldn't have any negative impact but should improve debugging.

@Geokureli
Copy link
Member

This seems relevant to: #3081

I'd like to determine whether this affects memory leaks resulting from FlxText bitmap keying

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