Skip to content

Performance

Brine2D

Brine2D.Performance Namespace

Classes
PerformanceMonitor Monitors game performance metrics like FPS, frame time, and memory usage. Provides data for performance overlays and profiling.
PerformanceOverlay Renders a performance statistics overlay on screen. Shows FPS, frame time, draw calls, and other metrics. Renders in screen space (UI layer) so it doesn't move with the camera.
PerformanceRenderingExtensions Extension methods for registering performance overlay (rendering).
PerformanceServiceCollectionExtensions
ScopedProfiler Profiles individual scoped execution times. Thread-safe for concurrent scoped execution (future-proofing).
ScopedTimingData Stores timing data for a single scope.
Enums
OverlayPosition Position options for the performance overlay.