0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00
obs-studio/plugins/text-freetype2
Kurt Kartaltepe cfb10ece79 text-freetype2: Use a shader uniform instead of vertex attributes
We used to swap in a buffer with (0,0,0,1) for all vertex colors for
drop shadows and outlines. However, this vertex buffer couldn't be
uploaded separately from the vertex data in OBS, so we were reuploading
the text vertices every frame.

Instead, let's use a uniform for this uniform data and save 500us (or
more when handles are visible), a significant portion of my test scenes
render time.
2024-04-22 01:01:47 -07:00
..
cmake
data text-freetype2: Use a shader uniform instead of vertex attributes 2024-04-22 01:01:47 -07:00
CMakeLists.txt plugins: Update CMake formatting with manual format choices 2023-12-19 17:59:44 -05:00
find-font-cocoa.m
find-font-iconv.c
find-font-unix.c
find-font-windows.c
find-font.c text-freetype2: Fix warning about implicit integer downcast 2023-08-31 17:52:08 -04:00
find-font.h
obs-convenience.c text-freetype2: Use a shader uniform instead of vertex attributes 2024-04-22 01:01:47 -07:00
obs-convenience.h text-freetype2: Use a shader uniform instead of vertex attributes 2024-04-22 01:01:47 -07:00
text-freetype2.c text-freetype2: Use a shader uniform instead of vertex attributes 2024-04-22 01:01:47 -07:00
text-freetype2.h text-freetype2: Use a shader uniform instead of vertex attributes 2024-04-22 01:01:47 -07:00
text-functionality.c text-freetype2: Use a shader uniform instead of vertex attributes 2024-04-22 01:01:47 -07:00