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

Inspect Text drawing performance issues #10

Open
Jebbs opened this issue May 3, 2014 · 1 comment
Open

Inspect Text drawing performance issues #10

Jebbs opened this issue May 3, 2014 · 1 comment
Assignees

Comments

@Jebbs
Copy link
Owner

Jebbs commented May 3, 2014

While working on my own project, I noticed a large performance hit while drawing text that I didn't notice when using the C++ version. Probably something I did. Should be fixed when I update to 2.1.

@Jebbs Jebbs self-assigned this May 3, 2014
@Jebbs
Copy link
Owner Author

Jebbs commented Dec 28, 2014

Found out that it wasn't anything I did. This happened because of how the binding was originally written, and whenever the sfFont's texture was updated, it would do a copy of the texture every time.

This is now fixed in my own version (will be pushing to the updates branch soonish before merging into master), and the time per draw call on a Text object went from around .4-.5 ms to around .007-.01ms. With my own test I did, which basically displayed some static text plus the framerate and went from an average 1.2ms per window loop to around .2ms per loop.

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

No branches or pull requests

1 participant