Hacker News new | ask | show | jobs
by anthk 409 days ago
The second.
1 comments

No, not really. Everything is just rasterized triangles now, but whether they're textured or not is up to the shader your using.

A non-textured triangle will be faster than a textured one as it can just return a literal in the pixel shader instead of wasting time sampling a texture for each pixel.

However a single texture sample is so cheap on modern hardware that a specialized path for solid colors wouldn't be worth the complexity in a 2D setting. It's fast enough.