For anyone that comes across this in the future, the solution I wound up
implementing is basically not rotating text constantly, but only by discrete
values when the rotation angle passes a certain limit, ie a rough example
would be, if it's 45 degrees, rotate text by 90, -45 , rotate by-90, so
Thank you for responding; it seems to be freeing up quite often, probably
several to more than several meg of memory a second (if the numbers are
right), depending on how often the view is invalidated. I know we are
working with limited heap space, is this something we can optimize in our
Skia's font cache doesn't count towards your heap limit.
On Sun, Jun 19, 2011 at 11:19 PM, Adam Ratana adam.rat...@gmail.com wrote:
Thank you for responding; it seems to be freeing up quite often, probably
several to more than several meg of memory a second (if the numbers are
right),
Thanks for the speedy replies Romain and Diane. I take it now that we should
not worry about it, beyond the typical known concerns for real-time drawing
and rendering, etc. Appreciated --
Adam
On Monday, June 20, 2011 2:22:14 AM UTC-4, Romain Guy (Google) wrote:
Skia's font cache doesn't
Well having it printed every second or so indicates you are pretty severely
thrashing the cache, which can certainly impact performance. For example
drawing your UI may not be fitting in the cache so each frame you draw
requires re-rendering glyphs back in to the cache. If that is the case,
look
After seeing this response, I spent some time to figure out exactly what I
was doing now that was causing this to appear in the logs so much. I was
puzzled because I wasn't using many styles or colors, the same font, same
color. I turned off alpha blending, and removed all the items I was
Yes, that will do it. Note that each angle you draw a glyph at needs a new
entry in the cache for the bitmap of the glyph drawn at that angle.
On Mon, Jun 20, 2011 at 6:42 PM, Adam Ratana adam.rat...@gmail.com wrote:
After seeing this response, I spent some time to figure out exactly what I
Hello, I am noticing the same with an implementation for some new
functionality I'm experimenting with. I am doing a lot of canvas.drawText
calls on a custom View canvas, using the system font though. Are you doing
canvas.drawText a lot, Samuh?
Also a bump in case anyone reading has
It just means it needs to flush old data from the font cache. You may see
this a lot if you are for example drawing at a large number of sizes, as you
fill up the font cache with glyphs in a lot of sizes and old glyphs need to
be removed to make room.
On Sun, Jun 19, 2011 at 9:17 PM, Adam Ratana
9 matches
Mail list logo