-
Notifications
You must be signed in to change notification settings - Fork 328
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
Heavy load on applying kerning with lots of characters #498
Comments
Hey, thanks for reporting. First of all, does this happen on every rendered frame, or only when changing the text? How much text are we talking about here? It would be very helpful if you could post the text and the font. Even better with a sample document which reproduces this behavior. Looks like you are using flexbox, is that two nested ones I'm seeing there? Did you try to experiment a bit with their performance considerations, as listed in the documentation here? |
This happens everytime the document needs to be updated (Using T to open the chatbox textinput, typing in the textinput, updating the text...), so "when changing the text" is more like it. I've probably not read the "performance concerns". I'll investigate further the link you provided. This is the chat.rml we use: |
Also I've been struggling to make a static height chatbox, so probably using other CSS rules for the chatbox might remove this problem. I'm fine having a static width chatbox, or even resizable with a drag element or some sort of command. |
I did some investigations and measurements. I have some questions, comments, and suggestions:
|
And additional profiling zone markers.
I'm sorry for the delay in my response.
|
I see. It doesn't really make sense to report library performance issues in debug mode, that depends entirely on your specific environment. You probably want to look into how to speedup your debug builds first. I've made a note for this specific case of long words with word breaking, it's not a top priority for me right now though.
Of course, this depends entirely on your needs. But based on your screenshot, set <style>
div { display: block; }
.outer {
background: #0003;
margin 5px;
}
</style>
<body>
<div class="outer">
<div>user a: message</div>
<div>user b: message</div>
</div>
<input type="text" class="chat_entry"/>
</body> If you want a fixed height, just set a height on the |
I am doing some cleanup of old issues. I am closing this one as it is a bit too unfocused. We did identify one performance issue here, so I appreciate the issue being reported, thanks! For now I have made a note of this issue, while it's not a top priority, hopefully we'll get around to it. |
Statistics from VS
robin_hood stealin' those cycles?
It seems it's taking a lot of CPU usage when I'm rendering "Out of the screen", happens when I input long strings in the game chatbox and takes too much height.
If you need anything, don't hesitate on asking!
The text was updated successfully, but these errors were encountered: