You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 05d827d
Browse filesBrowse the repository at this point in the historyBrowse files
[Windows] Keep ANGLE's compiled GL programs across launches
On Windows, Impeller draws through ANGLE, which compiles every GL program
with the Direct3D shader compiler when it is linked. The engine links its
built-in programs at startup, so every launch spends most of its startup
time in that compiler, and apps pay again for each runtime effect.
ANGLE supports persistent program binaries through EGL_ANDROID_blob_cache
when the application registers the callbacks. The Windows embedder now
registers a disk-backed cache right after eglInitialize, before any context
exists.
- ANGLE's keys cover the shader sources, its program format version, the
GPU and driver version (GL_RENDERER) and bindings, and it rejects a binary
whose adapter or feature level differs. A rejected or undecodable entry is
relinked and replaced.
- One file per entry, with the key, sizes and a checksum, written through a
temporary file and an atomic rename on a background thread. A failing file
reads as a miss and is deleted.
- The default folder is
%LOCALAPPDATA%\<CompanyName>\<ProductName>\flutter_program_cache, named
from the executable's version resource like path_provider's application
cache folder. FlutterDesktopEngineProperties::program_cache_path and
DartProject::set_program_cache_path() move it, or turn it off when empty;
--program-cache-path=<folder> overrides it in debug and profile builds.
- Entries live in a folder per engine version; the first write of a new
version removes other versions' cache files. The total is bounded to
32 MiB, least recently used first.
Part of flutter#191860.
0 commit comments