calref / cboe

Classic Blades of Exile
http://spiderwebforums.ipbhost.com/index.php?/forum/12-blades-of-exile/
Other
173 stars 42 forks source link

Text edit boxes are laggy #47

Open CelticMinstrel opened 9 years ago

CelticMinstrel commented 9 years ago

I think this is related to text rendering, but not quite sure. It seems to be worse on Windows, but does affect OSX as well.

CelticMinstrel commented 4 years ago

Considering using the TGUI text box to fix this, but I'll need to a) evaluate which features of the current box would still need to be implemented on top of it and b) whether I can get TGUI working with my personal build processes.

NQNStudios commented 1 month ago

@CelticMinstrel Did you observe this mainly in the scenario editor, as the strings you were typing got longer and longer?

NQNStudios commented 1 month ago

I see that in some scenario editor windows there are multi-line messages in addition to text fields, so those text fields would be expected to be laggy even when empty, because of lag induced by wrapping the messages every frame

CelticMinstrel commented 1 month ago

I think I've only observed this in the scenario editor. I don't remember if it has been improved since I first noticed it, but I remember it taking seconds to move the insertion point in some fields.

NQNStudios commented 1 month ago

I refactored them to try to use calculate_line_wrapping() and it seems to break mouse input for moving the cursor and dragging to select text....