You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: