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

cost lots of cpu about this bitmapFont #1

Closed
sonygod opened this issue Apr 27, 2012 · 5 comments
Closed

cost lots of cpu about this bitmapFont #1

sonygod opened this issue Apr 27, 2012 · 5 comments

Comments

@sonygod
Copy link

sonygod commented Apr 27, 2012

cost lots of cpu about this bitmapFont
in my computer ,cpu is use more than 40%

@Beeblerox
Copy link
Owner

on which target?

@sonygod
Copy link
Author

sonygod commented Apr 27, 2012

flash target

@Beeblerox
Copy link
Owner

ok. I think I can improve it.
And thank you for bug-report.

@Beeblerox
Copy link
Owner

I managed that main perfomance hit is from using:

  • rapidly changing text property;
  • fontScale (which affects the size of draw area);
  • shadow and outline (which affects number of draw operations).

So, if you don't use there properties or use only static texts then perfomance should be satisfactory.

@Beeblerox
Copy link
Owner

I made some improvements in commit c4230ca
Perfomance is much better now

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

No branches or pull requests

2 participants