Skip to content

Commit

Permalink
Merge pull request #233 from bilibili/refactor/perf-optz
Browse files Browse the repository at this point in the history
Refactor/perf optz
  • Loading branch information
hughfenghen authored Aug 12, 2024
2 parents 22f811a + aa08c73 commit 01b5401
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 211 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-mayflies-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@webav/av-cliper': patch
---

perf: pre-decode and update calmdown strategy
1 change: 0 additions & 1 deletion packages/av-cliper/demo/concat-media.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

<title>AVCliper Concat Media</title>
<link href="https://hughfenghen.github.io/font/noto-sans.css" rel="stylesheet">

<style>
#app {
Expand Down
2 changes: 0 additions & 2 deletions packages/av-cliper/demo/performance.demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ document.querySelector('#frag-10min')?.addEventListener('click', () => {
await write(otFile, (await fetch(resPath)).body!);
}

let t = performance.now();
const spr1 = new OffscreenSprite(new MP4Clip(otFile));
await spr1.ready;
console.log('111111111', performance.now() - t);
const width = 1920;
const height = 1080;
// spr1.rect.y = (height - spr1.rect.h) / 2;
Expand Down
1 change: 0 additions & 1 deletion packages/av-cliper/demo/performance.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">

<title>AVCliper Concat Media</title>
<link href="https://hughfenghen.github.io/font/noto-sans.css" rel="stylesheet">

<style>
#app {
Expand Down
Loading

0 comments on commit 01b5401

Please sign in to comment.