replacedtexprobe

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command replacedtexprobe checks #1082 on a GPU: a replaced screen's image, and the texture the painter made for it, are let go of with the walk of the frame that shows the new screen, with no frame after it.

It shows a 2048x2048 image under a RepaintBoundary for 2 s, so the painter draws it into a texture, replaces the content with a label, and then sits idle, collecting garbage every 250 ms and printing

REPLACED frames=N
RESULT image=freed|KEPT after=... frames-since-replace=M

image=freed means the image is unreachable, which on WebGPU it can only be once the painter's Free released its texture and dropped the cache entry that held it. frames-since-replace counts the frames begun after the replace: the frame that shows the label is one, so 1 means nothing after it was needed. Before #1082 the texture cache kept the image until the first frame at least a minute after it was last drawn, so an idle window printed KEPT at the 20 s limit.

go run ./hack/replacedtexprobe

On Android, package it and read logcat for "replacedtexprobe".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL