oov / aviutl_browser Goto Github PK
View Code? Open in Web Editor NEW拡張編集にブラウザーの表示内容を取り込めるようにするやつ
Home Page: https://www.nicovideo.jp/watch/sm38772089
License: MIT License
拡張編集にブラウザーの表示内容を取り込めるようにするやつ
Home Page: https://www.nicovideo.jp/watch/sm38772089
License: MIT License
現在は 60fps でのレンダリングに依存しており、どんなに効率よくプログラムやスクリプトが作られていても1秒間に30個程度のカスタムオブジェクトしか処理できないと思われる。
external_begin_frame_enabled
を使うと 60fps 以上の速度で処理できるようになるはずなので、対応できるようにしたい。
実装の際には普段は 1fps 程度で動かしておき、処理を行っている最中だけ全速力で回すような処理にしたい。
(あくまで非表示タブの軽量化などのための機能なので、完全に止めることはできないと思われる)
https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=17985
Note also that this functionality does not have test coverage, so bugs in this area would not be a great surprise.
壊れているかもしれないことには留意する。
Chrome 92 以降では SharedArrayBuffer
に制限が掛かるはずなので、一部のヘッダーをデフォルトで出力することによってその問題を回避できるようにする。
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
同じコンテンツを別のレイヤーに配置して同時に使う場合に、パフォーマンス面などで問題が発生する。
それを回避するために、同じコンテンツでも状況に応じて別のタブとして保持できるようにする必要がある。
以下が実装案。
obj.layer
を基準にして勝手に管理するexecute
を呼ぶときに tabid
を指定させるようにする今の段階では 2 のほうが無難な実装に見える。
2 の実装でも tabid
に obj.layer
を入れれば 1 とほとんど同じメリット/デメリットが享受できるので、選択する余地があるという意味でも 2 が良さそうに見える。
唯一の違いは 1 だとタブ数の上限が 100 になるけど 2 だとコンテンツごとに別管理になるからそれ以上になる。
ただ、そもそも普通の運用ではそんなに作ることはないから多分気にする必要はあんまりない。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.