wgui: perf: scissor render culling

Greatly increases rendering performance and minimizes drawcall count for large lists.
This commit is contained in:
Aleksander
2026-01-27 00:36:23 +01:00
parent 46e54db969
commit b17de39ef0
7 changed files with 120 additions and 49 deletions

View File

@@ -359,7 +359,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.unwrap();
if debug_draw_enabled {
log::debug!("pass count: {}", draw_result.pass_count);
log::debug!(
"pass count: {}, primitive commands count: {}",
draw_result.pass_count,
draw_result.primitive_commands_count
);
}
cmd_buf.end_rendering().unwrap();