MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_profiler_overlay_text

Function bloom_profiler_overlay_text

native/tvos/src/lib.rs:3409–3424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3407
3408#[no_mangle]
3409pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 {
3410 let snap = engine().profiler.snapshot();
3411 let mut s = String::with_capacity(snap.len() * 48);
3412 for (label, cpu, gpu) in &snap {
3413 s.push_str(label);
3414 s.push('|');
3415 s.push_str(&format!("{:.2}", cpu));
3416 s.push('|');
3417 match gpu {
3418 Some(g) => s.push_str(&format!("{:.2}", g)),
3419 None => s.push_str("-1"),
3420 }
3421 s.push('\n');
3422 }
3423 alloc_perry_string(&s)
3424}
3425
3426#[no_mangle]
3427pub extern "C" fn bloom_set_dof(enabled: f64, focus_distance: f64, aperture: f64) {

Callers

nothing calls this directly

Calls 4

snapshotMethod · 0.80
engineFunction · 0.70
alloc_perry_stringFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected