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
@@ -26,6 +26,8 @@ M.Config = { Actors = 4, MinTiles = 1, MinPixels = 2048, MaxBytesPerPixel = 0, S
|
||||
M.Stats = {
|
||||
ParallelFlushes = 0, SerialFlushes = 0, Tiles = 0, Fallbacks = 0, Late = 0, Pack = 0, Flush = 0, Finish = 0,
|
||||
SendBytes = 0, TexSends = 0, TexBytes = 0, Rects = 0, Recv = 0, RecvBytes = 0,
|
||||
-- why a flush stayed serial: dispatch window closed / Actors not ready / below MinTiles or MinPixels / over MaxBytesPerPixel
|
||||
SerialClosed = 0, SerialNotReady = 0, SerialSmall = 0, SerialBytes = 0,
|
||||
}
|
||||
local Stats = M.Stats
|
||||
|
||||
@@ -249,6 +251,11 @@ function M.Flush()
|
||||
bytes += Pn[a] + Tn[a]
|
||||
end
|
||||
par = bytes <= cfg.MaxBytesPerPixel * jobs.Px
|
||||
if not par then Stats.SerialBytes += 1 end
|
||||
elseif not par then
|
||||
if not open then Stats.SerialClosed += 1
|
||||
elseif not (cfg.Sync or ready) then Stats.SerialNotReady += 1
|
||||
else Stats.SerialSmall += 1 end
|
||||
end
|
||||
batch_no += 1
|
||||
local b = jobs
|
||||
|
||||
Reference in new issue
Block a user