Optimize viewer shaders and camera controls; sample GPU profiles asynchronously

Amp-Thread-ID: https://ampcode.com/threads/T-01a0b382-1e79-712b-abd1-d29201c9bb5e
Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
Amp
2026-09-18 11:52:09 +00:00
co-authored by heaust
parent bc957cf40d
commit eb8aa0e9dc
21 changed files with 762 additions and 174 deletions
+3 -2
View File
@@ -302,7 +302,8 @@ impl Core {
supported
}
pub fn take_profile(&self) -> Option<String> {
self.render.take_profile()
/// Installs the worker-local sink that publishes completed GPU timings into shared memory.
pub fn on_profile(&self, callback: js_sys::Function) {
self.render.on_profile(callback);
}
}