Now that Unity can import Vector Graphics (like SVG files) instead of just Raster Graphics (like PNG files), which Graphic type is more efficient to use in the software? As in, how to optimize for loading speed without losing art quality.
For example, let’s say I want to make a 2D game that has a ‘hand-painted’ style. But, if one Scene has several different images imported then which Graphics type would be better suited for that game? Or at least in terms of maintaining speed and quality.
I’m wondering how to maximize using high-quality art while optimizing the speed of the engine. Especially optimization to prevent lags and/or over-heating of the physical device when playing the 2D game.
All graphics need to be rasterised in order to be displayed. Vector graphics are smaller, more convenient for storage, easier to modify, lossless when scaling.
But will incur a conversion cost, that said unless you are using a bitmap format you will probably be incurring some sort of decompression cost anyway.
Vector graphics are also not aesthetically the same as all rasterised graphics so your art style may be a limiting factor.
That said modern computers (let alone gaming computer) are not going to struggle in rendering 90% of 2D applications either way.
Unless your making a physics focused game and or you have thousands of spawned entities in a scene performance won’t be an issue for 2d games