optimization

This commit is contained in:
Jorijn van der Graaf 2025-11-26 04:26:59 +01:00
commit 483131062f

View file

@ -136,6 +136,9 @@ void WindowWayland::StartSync() {
// Optimized pixel blending function using SIMD-like operations // Optimized pixel blending function using SIMD-like operations
inline void blend_pixel_optimized(Pixel_BU8_GU8_RU8_AU8& dst, const Pixel_BU8_GU8_RU8_AU8& src) { inline void blend_pixel_optimized(Pixel_BU8_GU8_RU8_AU8& dst, const Pixel_BU8_GU8_RU8_AU8& src) {
if(src.a == 0) {
return;
}
float srcA = src.a / 255.0f; float srcA = src.a / 255.0f;
float dstA = dst.a / 255.0f; float dstA = dst.a / 255.0f;