mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
[PERF DEBUG]
This commit is contained in:
parent
46a61ad4df
commit
41200ea28d
5 changed files with 101 additions and 40 deletions
|
@ -310,6 +310,8 @@ const renderLinearElementPointHighlight = (
|
|||
context.restore();
|
||||
};
|
||||
|
||||
let t = performance.now();
|
||||
|
||||
export const _renderScene = ({
|
||||
elements,
|
||||
appState,
|
||||
|
@ -330,6 +332,8 @@ export const _renderScene = ({
|
|||
if (canvas === null) {
|
||||
return { atLeastOneVisibleElement: false };
|
||||
}
|
||||
window.logTimeAverage("renderScene", performance.now() - t);
|
||||
t = performance.now();
|
||||
const {
|
||||
renderScrollbars = true,
|
||||
renderSelection = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue