HackMD
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
      • No invitee
    • Publish Note

      Publish Note

      Everyone on the web can find and read all notes of this public team.
      Once published, notes can be searched and viewed by anyone online.
      See published notes
      Please check the box to agree to the Community Guidelines.
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
No invitee
Publish Note

Publish Note

Everyone on the web can find and read all notes of this public team.
Once published, notes can be searched and viewed by anyone online.
See published notes
Please check the box to agree to the Community Guidelines.
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
~~##### # GFX 2019 work week ##### Interning positions? ##### (gw, kvark) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem [best](https://)(TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them - [ ] > ##### - however, hit testing still is a problem (TODO: clarify)`` ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) > ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) ##### ##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) just clarify > []because its funny > right ? | Column 1 | Column 2 | Column 3 | | -------- | -------- | -------- | | Text | Text | Text | ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve)##### - we intern sizes but not positions of clips and primitives ##### - gecko bakes the scroll offsets ##### - new API now allows us to ask for the scroll offsets and “unbake” them ##### - however, hit testing still is a problem (TODO: clarify) ##### - need `getrelativetransform` to be used consistently ##### - blocked on flattening rework (TODO: resolve) Mix-blend rollback ##### ##### TODO ##### ##### CSS Shooter perf ##### ##### TODO ##### ##### Render task graph ##### (nical, gw, kvark) ##### ##### Problem 1: a task is dependent on my multiple other tasks ##### Case: multiple drop shadows on the same text item ##### Opportunity: only downscale the text once, use for all shadow tasks ##### ##### Note: render task cache can't be used, since it doesn't handle dependencies well (scheduling issue). ##### - solution: schedule the RT cache as late as possible ##### - when dependencies are in the texture cache, we'd need to render in a pass and blit back to the texture cache ##### ##### Concern: render task rect rect allocation assumes that the source is in the previous pass. ##### - solution: blit contents of a task across passes ##### - schedule as late as possible ##### - retain some of the render task slices/rects as opposed to clearing ##### ##### Blits are expensive: ##### - bounds are not tight ##### - the perf on Intel scales with the number of pixels we touch ##### ##### TODO: check ARM/Mali for when the tiles are resolved: ##### - does it happen if the tile is unchanged? ##### - what if it was just cleared? ##### ##### Motivation: ##### 1. reduce redundant shadow tasks ##### 2. remove "mark for saving" ##### 3. SVG filters are expressed as graphs ##### ##### Q: retain across frames? ##### A: currently, not retaining any shadow tasks ##### ##### Q: debugging tools for RT graph resolver? ##### A: fun thing to write, given that the thing is fairly standalone ##### N: need tooling to find out the best scheduling off-line, compare with the run-time by the number of pixels ##### ##### Current "best" strategy: ##### - ping-pong as current WR ##### - schedule late ##### ##### Q: incremental deployment of the new alloctor? ##### 1. first, integrate with existing behavior ##### 2. enable for shadows and other things ##### 3. play with strategies ##### ##### Future: ##### 1. Since texture array, sub-manage slices. Try work with slices, not rects. ##### 2. Render pass as the whole render target, select the slice in VS. ##### 3. Try identifying the 1:1 pass work, use sub-passes. ##### - tile cache memory limits? know how many mask slices are there ##### - can provide the whole frame as one giant render pass ##### ##### Q: can we exploit the axises and auto-rotate things? ##### - would be good! ##### - segmentation solves the problem to some extent ##### - could also exploit the symmetry ##### ##### Rounded corners optimizations: ##### - only render the corners into the mask ##### - exploit the symmetry ##### - more precise bounding/geometry to reduce fill rate ##### - can't apply the local clip rect in this case! ##### - quad tree subdivision (or a regular grid) - still draw rects ##### - can't multiply the clip mask (TODO: discuss) ##### # Current PLS "optimization" ##### (gw, kvark, Gankro) ##### ##### TODO ##### Flattening semantics ##### ##### TODO ##### WebGPU integration ##### (kats, kvark) ##### ##### Process of vendoring wgpu-rs: ##### - move into the tree ##### - improve the remote layer ##### - establish scripts to/from GitHub ##### ##### Gecko will have 2 implementations as well, in the shape of different structs with the same virtual interface: local and remote. Differences are: ##### 1. `Client` parameter in all functions of the remote layer ##### 2. Swapchain integration (unknown on Gecko side) ##### 3. Pass dependencies collection in the remote layer ##### ##### Q: how do we reduce the JS calls in client apps? ##### ##### Moving into Gecko: ##### 1. copy into tree as "gfx/webgpu" ##### 2. connect it into libgkrust's [Cargo.toml](https://searchfox.org/mozilla-central/source/toolkit/library/rust/shared/Cargo.toml) and [lib.rs](https://searchfox.org/mozilla-central/source/toolkit/library/rust/shared/lib.rs) ##### 3. Run `./mach vendor rust`, check complains about licensing. This will add dependencies to thirdparty/rust, make sure it looks sane ##### 4. add build option "--enable-webgpu" similar to WR [here](https://searchfox.org/mozilla-central/rev/201450283cddc9e409cec707acb65ba6cf6037b1/toolkit/moz.configure#681-711). make the libgkrust integration stuff from step 2 behind a feature flag controlled by the build option ##### 5. To add a taskcluster job, copy and modify the existing webrender standalone jobs such as [this one](https://searchfox.org/mozilla-central/rev/201450283cddc9e409cec707acb65ba6cf6037b1/taskcluster/ci/webrender/kind.yml#1-26,44-67) - copy it into a new `taskcluster/ci/webgpu/kind.yml` file. You won't need the wrench-deps stuff, just run `cargo build` in the gfx/webgpu folder ##### ##### WebRender architecture overview ##### (gw) ##### ##### Display Lists: ##### 1. - Items ##### - text ##### - box shadowssssss ##### - image ##### - Stacking contexts ##### - filtersś ##### - Clip chains ##### - Reference frames ##### ##### Scene ("model"): ##### - picture tree ##### 1. - spatial tree ##### 1. - clip chains ##### 1. ##### 1. Q: "scene" term vs WR capturing ##### 1. Q: internation? (see picture caching) ##### 1. Q: tile caching? ##### ##### | Column 1 | Column 2 | Column 3 | ##### | -------- | -------- | -------- | ##### | Text | Text | Text | ##### ##### ##### can be scrolled around ##### ##### Frame ("view"): ##### - update spatial tree ##### - update picture tree ##### - update visibility ##### - update primitives ##### - generate render tasks ##### - assign passes ##### - batch ##### ##### Submit: ##### - apply resource updates ##### - for each pass ##### - for each layer ##### - bind resources ##### - draw ##### # Picture caching ##### ##### Q: stuff moved but not marked as changed by the debug overlay? ##### A: could be fixed-position element that isn't cached, drawn on top ##### ##### Interning key: ##### 1. item itself ##### 2. clipping ##### 3. transform ##### 4. animated properties (e.g. opacity) ##### ##### Picture = (prim uuid, uuid, uuid, ..) but ##### Tiles 1024x256. Identifying the dirty regions and updating them with a scissor rect. ##### ##### Q: what happens with complex regions? ##### A: draw the whole thing ##### - should set the Z on tiles to reject the pixels over the valid tiles (TODO: verify) ##### - blog-post-like pages are still the bad case ##### ##### Q: tile coordinate space? ##### A: world. If stuff is scrolled, the positions are adjusted, so we get the same world results. ##### ##### Q: how does the valid content gets into the new frame ##### A: copied through the texture cache ##### ~~~~**

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template is not available.
Upgrade
All
  • All
  • Team
No template found.

Create custom template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

How to use Slide mode

API Docs

Edit in VSCode

Install browser extension

Get in Touch

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Upgrade to Prime Plan

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

No updates to save
Compare with
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully