Replies: 2 comments
-
|
Update: @gerd-moellmann suggested enabling Instruments Allocations:Each of the following is a report from Without
|
Beta Was this translation helpful? Give feedback.
-
|
On the other hand, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
During resize, every 100ms (a rate which emacs itself may determine), a brand new pair of
IOSurfaces are allocated (for the front and back frame buffer), at 5-50MB a pop. Pretty inefficient.A better approach might be to limit the view of the
IOSurfaceand resize it only to make it larger (at least during resize), with some increment like 25%, as needed. One complications is we also have old-schoolCGImagebuffers and the new (optional) Metal buffers too, so they'd also need the same treatment. But could start withIOSurfaces. Once a given resize has completed (viewDidEndLiveResize) a "correct-size" frame buffer pair can be re-allocated.Beta Was this translation helpful? Give feedback.
All reactions