Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Jan 15, 2025
1 parent a1d99dd commit 074d101
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
26 changes: 12 additions & 14 deletions src/main_thread/init/multi_thread_content_initializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1709,20 +1709,18 @@ export default class MultiThreadContentInitializer extends ContentInitializer {
const sentInitialObservation = objectAssign(initialObservation, {
position: initialObservation.position.serialize(),
});
// XXX TODO: remove that: it's just to check that performance checks work as expected
setTimeout(() => {
sendMessage(this._settings.worker, {
type: MainThreadMessageType.StartPreparedContent,
contentId,
value: {
initialTime,
initialObservation: sentInitialObservation,
drmSystemId: drmInitStatus.drmSystemId,
enableFastSwitching,
onCodecSwitch,
},
});
}, 100);
sendMessage(this._settings.worker, {
type: MainThreadMessageType.StartPreparedContent,
contentId,
value: {
initialTime,
initialObservation: sentInitialObservation,
drmSystemId: drmInitStatus.drmSystemId,
enableFastSwitching,
onCodecSwitch,
},
});

corePlaybackObserver.listen(
(obs) => {
sendMessage(this._settings.worker, {
Expand Down
2 changes: 1 addition & 1 deletion tests/performance/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PERF_TESTS_PORT = 8080;
* More iterations means (much) more time to perform tests, but also produce
* better estimates.
*/
const TEST_ITERATIONS = 50;
const TEST_ITERATIONS = 100;

/**
* After initialization is done, contains the path allowing to run the Chrome
Expand Down

0 comments on commit 074d101

Please sign in to comment.