From 0b263f550d5e54d050f58f6b315b092944c9eff9 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Mon, 10 Aug 2026 11:11:18 -0700 Subject: Chapter 32: Compiler Internal Speedups Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: fuhsnn <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: Symious <14933944+symious@users.noreply.github.com> Co-authored-by: Jun Kawasaki Co-authored-by: Claude Opus 5 --- src/main/smp/sys/gfx.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/smp/sys/gfx.md') diff --git a/src/main/smp/sys/gfx.md b/src/main/smp/sys/gfx.md index 931d985f..61a2aba5 100644 --- a/src/main/smp/sys/gfx.md +++ b/src/main/smp/sys/gfx.md @@ -1,6 +1,6 @@ # Optional graphics -[Chapter 31](../../../../README.md#graphics-and-sound) introduces the library. +[Chapter 31](../../../../../chapter31/README.md#graphics-and-sound) introduces the library. The Simple API is implemented in [gfx.smp](gfx.smp), with the window adapter in [simple_minifb.c](../../c/simple_minifb.c). @@ -15,7 +15,7 @@ The game run target also builds optional [background audio](audio.md). ## Default: no graphics dependency -From `chapter31`, the usual `make release`, `make tests`, and `make tictactoe` +From `chapter32`, the usual `make release`, `make tests`, and `make tictactoe` need no MiniFB, graphics headers, OpenGL, CMake, or running display. Nothing downloads dependencies unless you explicitly request `make libs` or `make init` (`make lib` remains a setup alias). Build and run targets never use the network. @@ -32,7 +32,7 @@ the process. Non-graphics programs ignore even a broken graphics configuration. ## Build the optional backend -From `chapter31`: +From `chapter32`: ```sh make libs # Once while online; fills the persistent lib/ cache. @@ -68,7 +68,7 @@ also demonstrates the diagnostic and exit status 1 when graphics is absent. or release Escape to exit. Passing any argument to the executable makes it close after five polling iterations, for a quick smoke test. -To run directly from `chapter31` in PowerShell: +To run directly from `chapter32` in PowerShell: ```powershell $env:SIMPLE_MINIFB = (Resolve-Path build/release/x86_64_v2_win64/simple_minifb.dll).Path @@ -92,7 +92,7 @@ export SIMPLE_MINIFB="$PWD/build/release/x86_64_v2_win64/simple_minifb.dll" For WSL, from the repository root: ```sh -wsl -d Ubuntu-24.04 -- bash -lc 'cd chapter31 && make graphics graphics-example CLZDIR=build/classes-linux' +wsl -d Ubuntu-24.04 -- bash -lc 'cd chapter32 && make graphics graphics-example CLZDIR=build/classes-linux' ``` Inside WSL, set `SIMPLE_MINIFB` to the full path of the Linux `.so`, then run @@ -107,7 +107,7 @@ With no `SIMPLE_MINIFB` setting, the runtime searches beside the executable, then its `../../release/` and `../release/` directories. These cover the examples and test build layouts regardless of the current directory. It also checks the current directory, `build/release/`, and -`chapter31/build/release/` relative to the current directory. Thus built +`chapter32/build/release/` relative to the current directory. Thus built examples such as `Clock.exe` can be launched directly without configuration. `SIMPLE_MINIFB` overrides discovery; an invalid explicit path reports an error -- cgit v1.2.3