Skip to content

TBEditField rendering performance #111

@codecat

Description

@codecat

Did some profiling a couple weeks ago, and noticed that every word in a TBEditField is rendered individually, even if there's no different style applied to any of them, causing it to be quite slow.

photo_2016-11-27_02-28-58

(Sorry for the jpeg-artifacts, grabbed the screenshot from a compressed chat window :))

This was profiled on the shape rasterizer branch (actually the NimbleTools fork, but it's pretty much the same).

Are you aware of this? Are there any plans to improve this performance? If not, I'll probably look at it myself at some point. Why are the words drawn individually? Wouldn't it be faster to render each line individually for example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions