mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-19 16:01:57 +09:00
[Feat] (Pipe): land the P3a contract - the handle-shaped resource op table, the applier's resource and vertex-elements records, the two vertex wire views, an explicit baseInstance on set_vertex_buffers, and the first kNeedsAck
This commit is contained in:
@@ -174,7 +174,7 @@ namespace MobileGL::MG_Util::PipeStats {
|
||||
"draws", "accessor-calls", "tex-upload-emissions", "tex-upload-box", "tex-upload-rect",
|
||||
"tex-upload-jobs",
|
||||
#if MOBILEGL_PIPE_PUSH
|
||||
"render-state-cso-mints", "render-state-cso-binds",
|
||||
"render-state-cso-mints", "render-state-cso-binds", "map-persistent-roundtrips",
|
||||
#endif
|
||||
};
|
||||
const char* const kGateNames[kGateCount] = {
|
||||
@@ -425,6 +425,10 @@ namespace MobileGL::MG_Util::PipeStats {
|
||||
// line an operator greps.
|
||||
line += "] cso[csom=" + std::to_string(calls[static_cast<Uint32>(CallClass::RenderStateCsoMints)]);
|
||||
line += " csob=" + std::to_string(calls[static_cast<Uint32>(CallClass::RenderStateCsoBinds)]);
|
||||
// P3a's persistent-map acquisition attempts, on the same bracket and for the same
|
||||
// reason: it is push-only, and a window with an unexpected mpr= is the one number
|
||||
// that says an adoption is happening per draw rather than per storage definition.
|
||||
line += " mpr=" + std::to_string(calls[static_cast<Uint32>(CallClass::MapPersistentRoundtrips)]);
|
||||
#endif
|
||||
line += "] gates[";
|
||||
for (Uint32 i = 0; i < kGateCount; ++i) {
|
||||
|
||||
@@ -113,6 +113,17 @@ namespace MobileGL::MG_Util::PipeStats {
|
||||
// the cache's hit rate, and it is the number the CSO content-addressing negative
|
||||
// control moves.
|
||||
RenderStateCsoBinds,
|
||||
// P3a's, and push-only for the same reason as the two above.
|
||||
//
|
||||
// EVERY map_persistent EMISSION, i.e. every acquisition ATTEMPT - a mint or a decline
|
||||
// - because every one of them needs an answer from the resource owner. Counted that
|
||||
// way on purpose: "round trips actually taken" is 0 by construction in a monolith and
|
||||
// could never go red, which is not a counter, it is a decoration. Counted as attempts
|
||||
// the number is identical in both modes, it is exactly "one per storage definition",
|
||||
// and a regression that acquires per DRAW instead of per definition shows up on the
|
||||
// first window. Counted at the client emitter, behind the usual Enabled() predicate;
|
||||
// no timer anywhere.
|
||||
MapPersistentRoundtrips,
|
||||
#endif
|
||||
Count
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user