SDL_ttf: Creating surfaces every time |
capehill
|
You could keep the old texture until status string actually changes, and then update the texture.
|
|||||||||||
|
SDL_ttf: Creating surfaces every time |
Jonny D
|
http://stackoverflow.com/questions/29064904/rendering-fonts-and-text-with-sdl2-efficiently/29725751#29725751
Jonny D On Thu, Jan 5, 2017 at 1:39 PM, capehill wrote:
|
|||||||||||||
|
Re: SDL_ttf: Creating surfaces every time |
dandago
|
Interesting project! Is there any documentation on the library's capabilities other than the tiny snippet on the Github project homepage? |
|||||||||||||
|
SDL_ttf: Creating surfaces every time |
Jonny D
|
Nope! That snippet should eventually be expanded, but my time right now is very limited. Check the header (SDL_FontCache.h) and the test program for more details. I'm also around for any questions and if that makes me produce useful information, I'll add it to the project page.
Jonny D On Fri, Jan 6, 2017 at 7:24 AM, dandago wrote:
|
|||||||||||||
|