Jump to content

DrawText() taking a long time


Rick
 Share

Recommended Posts

Are there any reasons why DrawText() could take up to 5 seconds to complete? I have a really big project but I've narrowed down that DrawText() was killing my performance, but it didn't before. I'm not sure what I've added to cause this. I know it's the culprit because I put Notify() right before and right after the DrawText function call and the after Notify doesn't popup for 5 seconds after the before Notify.

 

Here is what I find interesting. If I have the below called once at the start of the program DrawText() doesn't take long to be called. It's normal time to call. However, the font that gets drawn is the buffFont and NOT the myFont, which is what I set it to. That's not making any sense to me.

 

myFont = LoadFont("abstract::Comic20")
buffFont = LoadFont("abstract::BuffFont")
SetFont(myFont)

 

 

If I comment out buffFont, DrawText goes back to taking 5 seconds and interestingly enough goes back to the default LE font.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...