4 ms·
The biggest changes are to rendering. GTK 1-3 used Cairo to do CPU rendering. It is slow and incapable of modern rendering features. GTK4 makes good use of the
by TingPing 3y ago
The biggest changes are to rendering. GTK 1-3 used Cairo to do CPU rendering. It is slow and incapable of modern rendering features. GTK4 makes good use of the GPU with OpenGL (and kinda Vulkan). It has been a huge win for performance improving animations, shaders, multimedia, zero-copy integration with external projects like WebKit, etc.
- Liskni_si 3y agoYeah, "good use", and also just happens to no longer support subpixel font antialiasing, so good luck if your screen isn't 4K. Which a lot of screens out there aren't. :-(
- jcarrano 3y agoWas it impossible to add GPU acceleration while keeping the old API?
- TingPing 3y agoYes the entire rendering API was based on Cairo. There was an attempt to have Cairo use OpenGL but it was mostly unsuccessful and abandoned. Even if that worked the paradigms used are very different and would fight performant GPU usage.