MacOS High Sierra: Remove the lag when resizing a window quickly

high sierramacosui

I've been facing this issue since El Capitan. Basically, when I resize a window manually, it lags or whatever you want to call it. Here's a video in real time showing this problem.

A gif slowed down 50% can show the mouse pointer leading the entire window redraw as it calculates the layout and then resizes the window with live layout changes.

enter image description here

Notice how the mouse pointer leads and the window lags when you resize the window fast.

My specs:

Processor: 2.5 GHz Intel Core i5
Memory: 16 GB 1600 MHz
Graphics: Intel HD Graphics 4000 – 1536 MB
Disk: 250GB SSD

CPU is not constrained when the lag is present:

enter image description here

Although this doesn't occur on Windows 10 (Same specs), it is still really annoying to deal with, and I'd really like to know if there's anything I could do or change to get rid of this issue…

The question:
Is there a way to remove the lag when resizing a window quickly?

Best Answer

That response looks entirely proper and the only thing I could see would be to have chrome somehow do less calculation of the content inside the frame and just resize the window and redraw / re-layout the text and content at a lower rate.

This seems like an intentional tradeoff - you can see the content is responding almost as fast as the mouse pointer. I'm not up on css / html enough to know if there's a hint you could embed to tell the web layout to not worry about layout changes so much and instead wait for you to pick a window size and then refresh.

My guess is the software isn't optimized for your use case at all. If chrome and safari and Firefox all work the same, you might simply see a decision to use CPU and cap frame rates due to energy consumption considerations and not for inherent limitations in the hardware. It could also be that all the responsiveness and resources are committed to making the content move inside the window so you know you are dragging and less about trying to track a window size change.

Dissecting this would make for an interesting research project or possibly a thesis for someone on software design tradeoffs and implementations. Which is a long way of saying, I don't think there's an easy solution for you to make a meaningful change other than use another browser or OS.