i have put some work into the textrenderer. i basically added a caching mechanism and made a few general optimizations
i could use some testers with different hardware for me it gives + 5-40% fps increase on an nvidia gpu and + 5-20 % on an intel igpu. in extreme cases (serverbrowser + console) it can even go up to +80%
just to mention: when you are already close to the gpu limit there won't be major improvements (e.g. 4K on an igpu)
i didn't read all the code but it seems like you have to use the textcontainer explicitly in ddnet... so you have to add single elements
my approach just records text draw calls, batches them together and just updates the gpu buffer when something changed
18:11
btw: you can disable the buffer with gfx_text_cache 0
18:12
should still be faster than 0.7.4 since it has lower overhead
it blocks the thread until all opengl operations you submitted are completely executed... the cpu waits for the gpu to finish all work. it's for example useful to determine how much time certain operations on the gpu took