Rick Posted November 13, 2011 Share Posted November 13, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.