While on my research window speed up quest,
I noticed that TextControl::SizeMove calls DetermineLines
also when only the position, not the size of the control is changed.
Fixing this gives a significant speedup at least for me, now that the labels are implemented with
ShadowedTextControls.
[Patch] Determine lines only on genuine resize
Moderator: Committer
[Patch] Determine lines only on genuine resize
- Attachments
-
[The extension patch has been deactivated and can no longer be displayed.]
Any code by me in this post is released under GPL 2.0 or later.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13587
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [Patch] Determine lines only on genuine resize
Looks reasonable. Committed.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13587
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [Patch] Determine lines only on genuine resize
Not sure if it's related, but I don't recall seeing this before... When scrolling through the messages window, text colour is intermittently glitchy depending on the text position. Possibly the parsing of tags is being messed up somehow?
- Attachments
-
- text colour quirks
- text_colour_quirks.png (66.97 KiB) Viewed 1131 times
Re: [Patch] Determine lines only on genuine resize
I think I saw that with 7311, before I started rolling my own builds.
The small print: Any code contribution I make to FreeOrion is made under GPL v2.0, any graphic contribution is under CC-by-SA 3.0
Re: [Patch] Determine lines only on genuine resize
It was present before r7229.Foocaux wrote:I think I saw that with 7311, before I started rolling my own builds.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: [Patch] Determine lines only on genuine resize
I have memories of it happening plenty of times in the past, but we now have more frequent colours due to the reporting of aggressive state, I remember it used to happen back when I'd try to force peace with AIs and similar. No idea what's causing it, but it's not new.
Mat Bowles
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.