# Optimizing the Metal pipeline to maintain 120 FPS in GPUI

DevFeed: [Optimizing the Metal pipeline to maintain 120 FPS in GPUI](<https://devfeed.tech/articles/optimizing-the-metal-pipeline-to-maintain-120-fps-in-gpui-13397.md>)

Original publisher: [Read original article](<https://zed.dev/blog/120fps>)

Author: Nathan Sobo, Antonio Scandurra

Published: 2024-02-07T00:00:00Z

Content type: article

Language: en

Sources: [Zed Industries - Blog](<https://devfeed.tech/sources/zed-industries-blog.md>)

Topics: [Quartz](<https://devfeed.tech/topics/quartz.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [blog-post](<https://devfeed.tech/tags/blog-post.md>), [code](<https://devfeed.tech/tags/code.md>), [latency](<https://devfeed.tech/tags/latency.md>), [performance](<https://devfeed.tech/tags/performance.md>), [quartz](<https://devfeed.tech/tags/quartz.md>)

## AI overview

This article explains how Zed investigated and fixed frame drops and janky scrolling in GPUI on an M2 MacBook. The issue involved differences between direct and composited rendering modes, Quartz compositor behavior, and synchronization between Metal presentation and window drawing.

## Source excerpt

Read the "Optimizing the Metal pipeline to maintain 120 FPS in GPUI" blog post.