xiaoiver
xiaoiver
从相机 VP 矩阵中解析出 Frustum 的六个面: http://web.archive.org/web/20120531231005/http://crazyjoke.free.fr/doc/3D/plane%20extraction.pdf https://github.com/mikolalysenko/extract-frustum-planes/blob/master/extract-planes.js
这个判断应该和具体渲染引擎有关,而且由于 WebGL 具体实现中需要尝试读取浮点纹理,通过是否报错判断,因此需要在引擎初始化完成后。最终决定加在 `onInit` 回调内: ```typescript const world = new World(canvas, { engineOptions: { supportCompute: true, }, onInit: (engine) => { console.log(engine.isFloatSupported()); }, }); ```
tfjs 遇到不支持的浏览器例如低版本的 Safari: 1. 抛出 `WebGL: INVALID_ENUM: readPixels: invalid type` 2. 自动切换成 CPU 版本: https://github.com/tensorflow/tfjs/issues/287#issuecomment-388382636
baseline:https://g6.antv.vision/zh/examples/net/furchtermanLayout#fruchtermanWebWorker 在 WebWorker 中运行 8000 次,layout 时间约 90s。 https://antv.vision/GWebGPUEngine/?path=/story/gpgpu--gravity 运行时编译版,即编译 + 计算时间: * WebGL 5.05s * WebGPU 2.5s 预编译版,可以理解为纯计算时间: * WebGL 4.3s * WebGPU 0.71s 另附上 https://nblintao.github.io/ParaGraphL/ WebGL 版做的 benchmark。
在 WebGL 1 中“模拟”实现 Compute Shader 时,有以下限制: 1. 由于只能输出到一个 FrameBuffer 中,因此只支持输出一份数据 2. 无法实现共享内存以及同步方法
发布了 VS Code 扩展: https://marketplace.visualstudio.com/items?itemName=xiaoiver-antfin.vscode-gwebgpu 目前仅具备语法高亮特性,基于 TypeScript 的 TextMate grammars 裁剪扩展得到。
I think there're two options to cache images with Google Workbox: 1. use `precache_glob_patterns`, you can add the filepath of images into the regexp so that they can be precached....
`v2.0.1` has been published. We use Workbox V3 now, which means you don't need to write these regexp in `_config.yml`. You can write them directly in your `service-worker.js`: ```javascript workbox.routing.registerRoute(...
May I ask how do you generate your AMP pages? Using some Jekyll plugins like [amp-jekyll](https://github.com/juusaw/amp-jekyll)?
What `L134-144` do is simply appending service worker registration code to ``. So maybe I should not hard code the inject point like this.