Vector vs Image GUI Resources
-
Is there any disadvantage (CPU wise) to using vector graphics and panels to create a GUI than using PNGs?
-
@d-healey said in Vector vs Image GUI Resources:
Is there any disadvantage (CPU wise) to using vector graphics and panels to create a GUI than using PNGs?
Vector images need a re-rendering every times you change the sizes anyway I don't think it could be significant on CPU, I mean it's not 3D rendering imho ;)
-
Hard to say in general, sometimes just drawing an image is incredibly expensive because it needs to be resized on the fly, but drawing complex shapes and gradients by vector definitely starts to burn CPU at some point.
-
@Christoph-Hart I guess it doesn't matter too much if the GUI script is deferred.
-
Even if you don‘t defer it, the paint routine will never be called on the audio thread so crackling audio will not be the problem here.