struct
Tessell::Kit::DebugInfo
- Tessell::Kit::DebugInfo
- Struct
- Value
- Object
Defined in:
tessell/kit/debug_overlay.crConstructors
-
.collect(backend_stats : Tessell::Render::FrameStats, atlas : Tessell::Text::GlyphAtlas | Nil, root : Root | Nil, frame_ms : Float32, dirty : Array(Tessell::Rect) | Nil = nil) : DebugInfo
组装自后端 stats + atlas + Root 状态;宿主只需传 frame_ms 与 dirty。
- .new(frame_ms : Float32 = 0.0_f32, quads : Int32 = 0, scissor_calls : Int32 = 0, culled_quads : Int32 = 0, stencil_fills : Int32 = 0, atlas_pages : Int32 = 0, rgba_pages : Int32 = 0, used_pixels : Int32 = 0, evicted_total : Int32 = 0, dirty_rects : Array(Tessell::Rect) = [] of Tessell::Rect, hover_name : String = "", focus_name : String = "", build_warnings : Array(String) = [] of String, perf_summary : String = "")
Instance Method Summary
- #atlas_pages : Int32
-
#build_warnings : Array(String)
建树期未追踪 signal 读告警(issue #41 第一期)
- #culled_quads : Int32
- #dirty_rects : Array(Tessell::Rect)
- #evicted_total : Int32
- #focus_name : String
- #fps : Float32
- #frame_ms : Float32
- #hover_name : String
-
#perf_summary : String
分段观测摘要(issue #60):宿主从 PerfCollector 生成的一行文本, 空串 = 未启用。仅 F1 overlay 展示,不进门禁(AGENTS #10)。
- #quads : Int32
- #rgba_pages : Int32
- #scissor_calls : Int32
- #stencil_fills : Int32
- #used_pixels : Int32
Constructor Detail
def self.collect(backend_stats : Tessell::Render::FrameStats, atlas : Tessell::Text::GlyphAtlas | Nil, root : Root | Nil, frame_ms : Float32, dirty : Array(Tessell::Rect) | Nil = nil) : DebugInfo
#
组装自后端 stats + atlas + Root 状态;宿主只需传 frame_ms 与 dirty。
def self.new(frame_ms : Float32 = 0.0_f32, quads : Int32 = 0, scissor_calls : Int32 = 0, culled_quads : Int32 = 0, stencil_fills : Int32 = 0, atlas_pages : Int32 = 0, rgba_pages : Int32 = 0, used_pixels : Int32 = 0, evicted_total : Int32 = 0, dirty_rects : Array(Tessell::Rect) = [] of Tessell::Rect, hover_name : String = "", focus_name : String = "", build_warnings : Array(String) = [] of String, perf_summary : String = "")
#
Instance Method Detail
def perf_summary : String
#
分段观测摘要(issue #60):宿主从 PerfCollector 生成的一行文本, 空串 = 未启用。仅 F1 overlay 展示,不进门禁(AGENTS #10)。