-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Text Performance #36
Comments
@Unreal852 Thanks for the feedback. How many nodes (texts) to be rendered in one frame in your scene? about 100 ~ 1000? The text rendering is a more expensive operation comparing to other geometry renderings. And current API doesn't support doing something optimization like cache font and text resource, that could be the first thing to do to improve the performance. I will try something. |
Maybe you can passing the Brush and TextFormat to DrawString() in Text.cpp. It will get a little bit improve. |
@jingwood Each node have a title, so there is a minimum of 2 nodes ( entry node and exit node ) but between them there can be 0 or 10, 100, etc, it is up to the user. I already wrote a Node system with winform GDI+ but the performance is not that good that why i'm looking to rewrite it with anoter renderer. I was thinking about OpenTK (GL) but it is way too overkill for what i'm doing. |
Added a performance test for text rendering fd01188 |
Hello, i noticed that Text rendering is fairly slow. I found a work-around by creating bitmap and rendering the text on it once and then rendering the bitmap. This is working but maybe there is another way to have better text rendering performance ?
To be more clear, i'm creating a Node-Based graph and so each nodes may need to have 1 or more text, and this clearly degrade performance when more and more nodes are added.
The text was updated successfully, but these errors were encountered: