diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/COMPLETED.md | 2 | ||||
| -rw-r--r-- | doc/SIZE_MEASUREMENT.md | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/COMPLETED.md b/doc/COMPLETED.md index 4f0a889..427ac4f 100644 --- a/doc/COMPLETED.md +++ b/doc/COMPLETED.md @@ -142,7 +142,7 @@ Use `read @doc/archive/FILENAME.md` to access archived documents. - Audio: Use miniaudio's `ma_backend_null` (excludes platform drivers, saves 100-200KB) - GPU/Platform: Stub our abstractions (~30 functions) instead of external APIs (~300 functions) - Created `src/platform/stub_types.h` with minimal WebGPU opaque types - - Created `src/platform/stub_platform.cc` and `src/gpu/stub_gpu.cc` + - Created `src/platform/stub_platform.cc` and `src/gpu/gpu_stub.cc` - Added `DEMO_STRIP_EXTERNAL_LIBS` build mode - Created `scripts/measure_size.sh` for automated measurement - **Result**: Demo=4.4MB (69%), External=2.0MB (31%). Binary compiles but doesn't run. diff --git a/doc/SIZE_MEASUREMENT.md b/doc/SIZE_MEASUREMENT.md index 96c8e6c..f4d93b2 100644 --- a/doc/SIZE_MEASUREMENT.md +++ b/doc/SIZE_MEASUREMENT.md @@ -60,7 +60,7 @@ double platform_get_time() { return 0.0; } #endif ``` -**`src/gpu/stub_gpu.cc`:** +**`src/gpu/gpu_stub.cc`:** ```cpp #if defined(STRIP_EXTERNAL_LIBS) WGPUDevice gpu_create_device() { return nullptr; } @@ -90,7 +90,7 @@ if(DEMO_STRIP_EXTERNAL_LIBS) target_compile_definitions(demo64k PRIVATE STRIP_EXTERNAL_LIBS) target_sources(demo64k PRIVATE src/platform/stub_platform.cc - src/gpu/stub_gpu.cc + src/gpu/gpu_stub.cc ) # Don't link external libs @@ -144,7 +144,7 @@ Create `src/platform/stub_platform.cc`: ### Phase 3: GPU Stubs (1 hour) -Create `src/gpu/stub_gpu.cc`: +Create `src/gpu/gpu_stub.cc`: - Implement ~20 gpu wrapper functions as no-ops - All pointer returns = nullptr - All void functions = empty body @@ -199,7 +199,7 @@ size build_size/demo64k **New:** - `src/platform/stub_types.h` - WebGPU opaque types - `src/platform/stub_platform.cc` - Platform stubs (~10 functions) -- `src/gpu/stub_gpu.cc` - GPU stubs (~20 functions) +- `src/gpu/gpu_stub.cc` - GPU stubs (~20 functions) - `scripts/measure_size.sh` - Size measurement script **Modified:** |
