Raxol.Terminal.Renderer.GPURenderer (Raxol v0.5.0)
View SourceGPU-accelerated terminal renderer.
This module provides hardware-accelerated rendering capabilities for the terminal, utilizing the GPU for improved performance. It includes:
- Hardware-accelerated text rendering
- GPU-based buffer management
- Optimized render pipeline
- Performance monitoring and optimization
Features
- GPU-accelerated text rendering
- Hardware-accelerated buffer management
- Efficient render pipeline
- Performance optimization
- Memory management
- Resource pooling
Summary
Functions
Gets the current performance metrics.
Creates a new GPU renderer instance.
Optimizes the render pipeline based on current performance metrics.
Renders the screen buffer using GPU acceleration.
Updates the render pipeline configuration.
Types
@type t() :: %Raxol.Terminal.Renderer.GPURenderer{ buffer_pool: map(), gpu_context: map(), performance_metrics: map(), render_pipeline: map(), renderer: Raxol.Terminal.Renderer.t() }
Functions
Gets the current performance metrics.
Parameters
gpu_renderer
- The GPU renderer instance
Returns
Map containing performance metrics
@spec new( Raxol.Terminal.Renderer.t(), keyword() ) :: t()
Creates a new GPU renderer instance.
Parameters
renderer
- The base renderer instanceopts
- Additional options for GPU rendering
Returns
A new GPU renderer instance
Optimizes the render pipeline based on current performance metrics.
Parameters
gpu_renderer
- The GPU renderer instance
Returns
Updated GPU renderer instance with optimized pipeline
Renders the screen buffer using GPU acceleration.
Parameters
gpu_renderer
- The GPU renderer instanceopts
- Rendering options
Returns
The rendered output
Updates the render pipeline configuration.
Parameters
gpu_renderer
- The GPU renderer instanceconfig
- The new pipeline configuration
Returns
Updated GPU renderer instance