Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd profiling to WebXR #25810
Add profiling to WebXR #25810
Conversation
highfive
commented
Feb 20, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Feb 20, 2020
|
|
| #[cfg(feature = "xr-profile")] | ||
| let start_swap = time::precise_time_ns(); | ||
| #[cfg(feature = "xr-profile")] | ||
| println!("WEBXR PROFILING [swap request]:\t{}ms", (start_swap - _sent_time) as f64 / 1_000_000.); |
This comment has been minimized.
This comment has been minimized.
jdm
Feb 20, 2020
Member
Let's define another to_ms function in canvas_traits to avoid repeating this calculation.
| @@ -2534,7 +2534,7 @@ impl Document { | |||
| self.window | |||
| .webgl_chan() | |||
| .expect("Where's the WebGL channel?") | |||
| .send(WebGLMsg::SwapBuffers(dirty_context_ids, sender)) | |||
| .send(WebGLMsg::SwapBuffers(dirty_context_ids, sender, 0)) | |||
This comment has been minimized.
This comment has been minimized.
jdm
Feb 20, 2020
Member
Let's send a real time here; having 0 kept giving me weird output I had to ignore.
|
@bors-servo r=jdm |
|
|
Add profiling to WebXR Part of servo/webxr#128 Depends on servo/webxr#131 r? @jdm
|
|
|
./ports/libsimpleservo/capi/Cargo.toml:52: trailing whitespace |
|
@bors-servo r=jdm |
|
|
|
@bors-servo r=jdm |
|
|
Add profiling to WebXR Fixes servo/webxr#128 Depends on servo/webxr#131 r? @jdm
|
|
|
@bors-servo retry |
Add profiling to WebXR Fixes servo/webxr#128 Depends on servo/webxr#131 r? @jdm
|
|
|
@bors-servo retry |
|
|
Manishearth commentedFeb 20, 2020
•
edited
Fixes servo/webxr#128
Depends on servo/webxr#131
r? @jdm