Stage timing: Textures and Flush stages; parallel stats: why flushes stay serial (SerialClosed/NotReady/Small/Bytes)
Build & Release / build (push) Canceled after 0s
Build & Release / build (push) Canceled after 0s
This commit is contained in:
1 parent
352a389f1d
commit
e413270786
4 files changed
+27
-5
No files matched your search
@@ -748,14 +748,16 @@ function M.RenderDrawData(draw_data)
|
||||
PB("ImGui RenderDrawData")
|
||||
BackendData.FrameStartTime = os.clock()
|
||||
if EditableImages.StageTiming then
|
||||
EditableImages.StageFrame = { Compare = 0, Collect = 0, Hash = 0, Raster = 0, Upload = 0, Other = 0, Total = 0,
|
||||
EditableImages.StageFrame = { Compare = 0, Collect = 0, Hash = 0, Raster = 0, Upload = 0, Textures = 0, Flush = 0, Other = 0, Total = 0,
|
||||
TilesRasterized = 0, PixelsRasterized = 0, Uploads = 0, TilesCreated = 0, TilesFreed = 0 } end
|
||||
BackendData.FrameTiles = 0
|
||||
-- the first dirty tile of a frame is always redrawn (progress), the rest within the budget
|
||||
BackendData.RedrawStarted = false
|
||||
BackendData.Stale = nil
|
||||
|
||||
if EditableImages.StageTiming then EditableImages.BeginStage() end
|
||||
UpdateTextures(draw_data)
|
||||
if EditableImages.StageTiming then EditableImages.EndStage("Textures") end
|
||||
if not RenderRateAllows(BackendData, draw_data) then
|
||||
PE()
|
||||
return
|
||||
@@ -828,13 +830,15 @@ function M.RenderDrawData(draw_data)
|
||||
BackendData.StaleHeartbeat = BackendData.HeartbeatCount
|
||||
end
|
||||
if Parallel.Active then
|
||||
if EditableImages.StageTiming then EditableImages.BeginStage() end
|
||||
Parallel.Flush()
|
||||
if EditableImages.StageTiming then EditableImages.EndStage("Flush") end
|
||||
end
|
||||
if EditableImages.StageTiming and EditableImages.StageFrame then
|
||||
local f = EditableImages.StageFrame
|
||||
f.Raster -= f.Upload
|
||||
f.Total = os.clock() - BackendData.FrameStartTime
|
||||
f.Other = f.Total - f.Compare - f.Collect - f.Hash - f.Raster - f.Upload
|
||||
f.Other = f.Total - f.Compare - f.Collect - f.Hash - f.Raster - f.Upload - f.Textures - f.Flush
|
||||
BackendData.FrameStats = f
|
||||
end
|
||||
PE()
|
||||
|
||||
Reference in new issue
Block a user