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:
+3
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user