Original Post
🔒 Locked
SDL Text Output
Advertisement
SDL_TTF hands down. . .It has bad documentation, but once you get past that its cake. . .
SDL_TTF without a doubt. It smacked me good tho in the beginning - dragged my framerates into the single digits when I first started using it. Then I realized through profiling, as PnP Bios said, that all my time was being used up rendering the text every single frame. So make sure you always render the text once to an intermediate surface, and then just keep blitting that surface to the main surface and only re-render the text when it changes.
NOt saying you guys don't do that, just saying it for anyone coming here, checking out SDL_TTF, and making the same mistake as me [smile]
NOt saying you guys don't do that, just saying it for anyone coming here, checking out SDL_TTF, and making the same mistake as me [smile]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement