xbmc/xbmc — pull request #4911 by sportica (2014-06-13 17:44:53+00:00)
Title: Reduce reallocation texture of subtitle font

Subtitle character cache texture is initialized for 100 letters.
Actual size is determined by subtitle font size.
Texture will be overwritten if cache is full.

If text length at the same is exceeded 100 letters, texture size will be increased to text length.
But this will not happen normally.

------------
Subtitle text have two fonts. (m_font, m_borderFont).
Each font have a texture for font atlas.

When character caches are full, they will reallocate their textures.
Video memory is fragmented by two growing textures.

Defragment is not fast enough to avoid stuttering on some system.