▲ | cyberax 11 hours ago | |
[flagged] | ||
▲ | epistasis 10 hours ago | parent | next [-] | |
From the bug report: > It turns out Electron was overriding a private AppKit API (_cornerMask) to apply custom corner masks to vibrant views. > ... > By removing the custom _cornerMask override and associated logic, we allow AppKit to handle shadows with its default pipeline. This resolves the GPU spike while retaining shadows as expected. I'd say that most often usage of private APIs is because: 4. it probably shouldn't be done at all | ||
▲ | stalfosknight 11 hours ago | parent | prev [-] | |
I'll grant that their documentation isn't the best I've ever seen, but it is still on you if you reach for private APIs. Again, that is consciously choosing a shortcut you've been explicitly told not to use. |