winzik/docker/ext/cryo/SOURCE.md
David Nurdin 1e0a9fad24 Cryo save points freeze the whole program, whatever the game (no code of it): JumPHP\Cryo\ProcessFreeze
- "Freeze here" stops the game loop, Application::run() freezes every value reachable from the globals and statics
  (cryo_freeze include globals + statics: the application, engine, scenes, loop and timers, the game's services) and
  runs the loop again; JUMPHP_CRYO_THAW thaws it in Application::boot() before anything is built, which returns the
  thawed application: the game goes on exactly where it was
- native parts made again at the thaw: window and SDL renderer opened by the new process, textures from their recipe
  (Sdl::$recipes: file or picture; render targets blank, redrawn), fonts, sounds and the music playing, gamepads
  (cryo_register_resource + cryo_on_thaw / replaceClass); files signed with a key of the project
- the scene save point stays next to it, used when the whole program can not be resumed (code changed, OpenGL)
- SceneManager params by class (no WeakMap), the container's compiler and private-method closures out of the freeze
- ext-cryo a9c891d (php-cryo): typed properties holding a frozen value (closure, resource, __wakeup object, excluded
  object) come back; DESKTOP_REV 11
- IDE: each save point says "whole program" / "scene only" (why); docs/ide.md, docs/cryo.md

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 11:18:43 +01:00

4 lines
164 B
Markdown

# ext-cryo (vendored)
Copy of `ext-cryo/` from git.jumphp.net/jumphp/php-cryo, commit a9c891d.
Do not edit here: change it there, then run `tools/sync-jumphp.sh`.