diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 45acc3141..64791bfa9 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -63,6 +63,7 @@ export function plugin(client: PluginClient) { const metadata = createState>(new Map()); const streamInterceptor = getStreamInterceptor(); + let lastFrameTime = 0; const device = client.device.os; client.onMessage('init', (event) => { @@ -249,7 +250,10 @@ export function plugin(client: PluginClient) { } }); - applyFrameData(processedNodes, frameScan.snapshot); + if (frameScan.frameTime > lastFrameTime) { + applyFrameData(processedNodes, frameScan.snapshot); + lastFrameTime = frameScan.frameTime; + } applyFrameworkEvents(frameScan); return true;