I'm developing my game with Allegro 4.9.8.
While programming, I realized that sometimes my program uses too much CPU processing.
Then, trying to find where it was the cause, I discovered that al_font_textout() was the answer. I made a test program to prove this, and I was right:
- I load a ttf font
- Use a color
- In a loop (with sleep()!) I use that function
When I remove the line of al_font_textout(), my CPU proccessment goes 2~ in max. With al_font_textout(), it reachs 30~35.
I attached my program files so you can test it too.
Does this only happens with me?
If not, isnt it a bug?
Is it a know bug that was solved on 4.9.9?