News for hackers. Stuff that matters.
Re:I translated a simple C program to x86_64 and it was slower by pengaru on Saturday April 25, 2020 @04:10PM (#22981025)
My guess is they didn't even need to be fast, just render once when the window is configured and keep a cache of rounded corners in the window system complete with the masks. They're tiny, and symmetrical.
Re:I translated a simple C program to x86_64 and it was slower by Someone on Saturday April 25, 2020 @04:26PM (#22981161)
Compute once when the window is created or resized is what happened, yes, but that doesn’t work when using them for buttons (unlike MS Windows, where every control is a ‘Window’, on Mac OS controls inside a window didn’t have their own drawing context), or when using them for window content (e.g. in a drawing program)

And remember: the original Mac had about 28 kilobytes of RAM free for applications. The system unloaded icons, code and fonts that were available on disk all the time. Few objects were ‘tiny’ at the time.