khora_agents/render_agent/mod.rs
1// Copyright 2025 eraflo
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Acts as the **[A]gent** for the rendering subsystem, fulfilling the role of an ISA.
16//!
17//! This module provides the high-level, tactical logic for rendering scenes. It
18//! determines *which* rendering strategy to use and in what order, but delegates
19//! the actual GPU command generation to the various `render_lanes`.
20//!
21//! As an **Intelligent Subsystem Agent (ISA)**, its responsibilities will include:
22//! - Analyzing the scene's complexity (e.g., light count, geometry density) and
23//! reporting performance metrics (GPU time, VRAM usage) to the DCC.
24//! - Managing a portfolio of rendering strategies, such as `SimpleUnlitLane`,
25//! `ForwardPlusLane`, or a future `DeferredLane`.
26//! - Selecting the optimal rendering strategy based on the budget allocated by GORNA
27//! and the current performance goals (e.g., prioritizing framerate vs. visual quality).