Jump to content
Posted 20 February 2012 - 01:04 AM
Posted 20 February 2012 - 01:54 AM
- Has anyone else done this?
- It seems like you would have more freedom in designing the UI since you're not having to send each piece as geometry to the GPU...
- I don't have much idea how to edit textures on the CPU either.
- Would uploading final textures each frame to the GPU really be faster than sending the individual quads to the GPU?
- Skia and Cairo ...
Posted 22 February 2012 - 03:18 PM
Posted 22 February 2012 - 03:50 PM
Posted 22 February 2012 - 04:05 PM
The issue isn't really performance at all, it's that Skia and Cairo can render full unicode fonts. If you ever want to localise your game in, for example, Arabic, then you'll need to integrate a fully-fledged text API anyway (Sanskrit, Arabic, etc. are not character-based languages - you can't render them just by throwing a sequence of quads at the screen).
I know you've talked about Skia and Cairo, I'd be interested in finding out how they do quicker font rendering, rather than using them directly.
I'm curious whether that is actually slower than directly rendering the string of text to a texture using Freetype every time it changes (which might be every few frames), given that Freetype isn't particularly fast itself.