debug: Add actual profiling for rendeirng
This commit is contained in:
parent
26743d6bdc
commit
1c62d6d061
10 changed files with 184 additions and 1 deletions
|
|
@ -172,6 +172,9 @@ where
|
|||
R: Renderer + ImportAll,
|
||||
<R as Renderer>::TextureId: 'static,
|
||||
{
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
|
||||
if get_role(&surface) != Some("dnd_icon") {
|
||||
warn!(
|
||||
?surface,
|
||||
|
|
@ -215,6 +218,8 @@ where
|
|||
R: Renderer + ImportMem + ImportAll,
|
||||
<R as Renderer>::TextureId: Clone + 'static,
|
||||
{
|
||||
#[cfg(feature = "debug")]
|
||||
puffin::profile_function!();
|
||||
// draw the cursor as relevant
|
||||
// reset the cursor if the surface is no longer alive
|
||||
let cursor_status = seat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue