Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rendering text on GPU metal vs CPU core graphics

Tags:

ios

swift

metal

I’m trying to decide if it’s a good idea to render text to video on low level metal GPU or just keep using core graphics to draw text on video frame.

Using the GPU seems like a couple months of work to get it right and even then is simple static rendering. Will I see significant gains in performance if I change to GPU? I’m doing animated video captions renderer app and the text on metal seems complex.

I already got the metal pipeline running with some drawing

like image 825
masaldana2 Avatar asked Oct 28 '25 10:10

masaldana2


1 Answers

Will I see significant gains in performance if I change to gpu ?

It depends on a lot of factors, but you'll get a significant improvement anyway. In my program I have to deal with high resolution video (16K, 60FPS), and without native text rendering, my program simply will not work.

Using the gpu seems like a couple months of work to get it right and even then is simple static rendering.

It wouldn't take that long, there are so many articles in the web, here are some of them:

Rendering Text in Metal

Rendering Text in OpenGL

Text Rendering Library

like image 169
Hamid Yusifli Avatar answered Oct 31 '25 00:10

Hamid Yusifli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!