Support Board
Date/Time: Wed, 07 May 2025 15:31:17 +0000
Post From: 4 Fonts and 5 Sizes hangs Sierra with sc.Graphics.DrawTextAt()
[2024-11-29 10:40:28] |
User907968 - Posts: 840 |
Similar noted here when using ~20 different sizes of the same font, but only when using OpenGL. Ended up limiting the study to max 10 sizes which, in my case, was an acceptable compromise. Some observations - Using max 10 sizes the render function completes in very low to sub-millisecod time range. Using 20 sizes the same function can take more than 1 second (often much more) to complete, depending on the number of text objects being drawn. The source of the slowdown was not limited to DrawTextAt, in fact the various text metric functions also seem affected. If I call GetTextSize before DrawTextAt then, GetTextSize is slow whereas DrawTextAt is not. If I call GetTextSizeWithFont then both that call and DrawTextAt are slow, same observed with GetTextHeight/DrawTextAt. Feel free to delete this post if it is unhelpful. |