jjYBdx4IL / Vulkan-freetype

Text rendering in Vulkan by estimating signed distance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changes

Fixed stuff to make it work with MSVC 2019, Freetype 2.11.0, and Vulkan SDK 1.2.198.0.

Description

Text is rendered directly from font outlines.

You need to clone (checkout) the repository using the --recurse-submodules option.

Performance

AMD Ryzen 5600X + GTX 1060: one CPU core at limit (90% of time spent in append_text() building the instance buffer from the raw text input string), GPU usage around 15% (debug mode). 600+ fps in debug mode, 4000+ fps in release mode.

Conclusion

Works, but is it worth the additional CPU and GPU load?

Sources

About

Text rendering in Vulkan by estimating signed distance


Languages

Language:C++ 74.0%Language:C 19.6%Language:GLSL 4.6%Language:CMake 1.9%