Overview
GPUI provides hardware-accelerated rendering for the entire terminal interface, including:- Terminal text and ANSI colors
- Tab strip animations
- Scrolling and viewport rendering
- UI overlays (search, command palette, AI input)
- Cursor animations and blinking
How It Works
Termy integrates GPUI as its core rendering engine through a dependency on the Zed GPUI package:Rendering Pipeline
- Terminal Emulation: Termy uses Alacritty’s terminal emulation engine to process terminal output
- GPUI Integration: Terminal grid cells are rendered using GPUI’s GPU-accelerated primitives
- Efficient Updates: Only changed regions are re-rendered, minimizing GPU load
- Compositing: UI overlays and chrome are composited in separate layers
Performance Benefits
Key Advantages
Smooth Animations- Tab transitions
- Cursor blinking
- Scrollbar fading
- Modal overlays
- Hardware-accelerated text rendering
- Efficient handling of large scrollback buffers
- Low latency input response
- Shadows and borders
- Rounded corners
- Color blending and transparency
Platform Support
GPUI provides native rendering backends for:- macOS: Metal API
- Linux: Vulkan/OpenGL
- Windows: DirectX
GPUI automatically selects the optimal rendering backend for your platform.
Architecture
Termy’s view hierarchy leverages GPUI’s component model:System Requirements
Minimum Requirements
- macOS: macOS 10.15+ with Metal support
- Linux: GPU with Vulkan 1.1+ or OpenGL 3.3+
- Windows: GPU with DirectX 11+ support
Recommended
- Dedicated GPU for optimal performance
- Up-to-date graphics drivers
- Display with 60Hz+ refresh rate for smooth animations
Troubleshooting
If you experience rendering issues:- Update Graphics Drivers: Ensure you have the latest GPU drivers installed
- Check GPU Compatibility: Verify your GPU supports the required graphics API
- Monitor GPU Usage: Use system monitoring tools to check for GPU overload