Font Library Performance Boost


I just discovered something major while working on my next game and reading the SDL wiki. It turns out that if you convert a surface to the same format as what it is going to be copied to, then the blitting will be much faster!

Therefore I used this function:

https://wiki.libsdl.org/SDL2/SDL_ConvertSurface

And then updated the file in the SDL version of my font library, Chaste Tris, and the current game that is in development. Now everything will run much faster which is ultra important especially for Chaste Tris because it writes a lot of text to the screen and every single character is nothing more than a SDL_BlitSurface call.

Files

sdl_chastefont.zip 10 kB
Mar 08, 2023

Get SDL Chaste Font

Leave a comment

Log in with itch.io to leave a comment.