FontStashSharp / FontStashSharp

C# port of https://github.com/memononen/fontstash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the texture erasing less memory consuming

rds1983 opened this issue · comments

When fixing #50, a logic was implemented that cleared the whole atlas texture on the creation.
That logic created a erase buffer with the size of the texture (width * height * 4).
Replace that logic with the one less memory consuming that merely erase the rectangle where a new glyph is going to be rendered.