Disclaimer: I have no professional education in Compulational Fluid Dynamics, these are various notes on what I found/learned when trying to learn a bit on the topic. Some of the notes lack sources as I wrote them up later often just remembering some StackExchange answer. Some things I might have misinterpreted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| H264, 25fps: | |
| ."C:\Users\andre\ffmpeg.exe" -i %d.png -c:v libx264 -pix_fmt yuv420p output.mp4 | |
| H264, 60fps: | |
| ."C:\Users\andre\ffmpeg.exe" -framerate 60 -i screenshot%d.png -r 60 -c:v libx264 -pix_fmt yuv420p output.mp4 | |
| H265 (windows can't play it!) | |
| ."C:\Users\andre\ffmpeg.exe" -i %d.png -c:v libx265 -pix_fmt yuv420p output.mp4 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @group(0) @binding(0) | |
| var<storage, read> numbers_input: array<u32>; | |
| @group(0) @binding(1) | |
| var<storage, read_write> numbers_output: array<u32>; | |
| var<workgroup> shared_atomic: array<atomic<u32>, 64>; | |
| var<workgroup> shared_workgroup_memory: array<u32, 64>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Compiling & linking a large shader</title> | |
| <script src="main.js" type="module"></script> | |
| <script id="vertexShader" type="x-shader/x-vertex">#version 300 es |
TL;DR:
- Compile times are 13-16% shorter if you have several backends (always on Windows), slight but consistent improvements if you use only a single one (default on Mac)
- Runtime performance of compute passes gets worse by 10-30% (with a 40% worse outlier for a lot of dispatches in a single pass)
- Runtime performance of render passes sometimes 17-34% better and sometimes 10% worse 🤷
- Stuck doc-gen issue is fixed!
wgpu-infoWindows binary size goes down, Mac binary sizes goes up unless you add more backends
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Launch a command under nono with fine-grained git permissions. | |
| Instead of --allow-cwd (blanket read-write to the entire working directory), | |
| this resolves the git directory (including worktree indirection) and passes | |
| explicit --read / --write flags. | |
| Usage: | |
| nono-git.py [--git-read-only] [--] <command> [args...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Robot Description Formats: URDF and Alternatives</title> | |
| <style> | |
| body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; max-width: 1100px; margin: 0 auto; padding: 2rem; color: #222; background: #fafafa; } | |
| h1, h2, h3 { line-height: 1.2; } | |
| h1 { font-size: 2.2rem; margin-bottom: 0.25rem; } | |
| .subtitle { color: #666; margin-bottom: 2rem; } |