png / jpeg: maxSide + yield docs (guide, API) and tested snippet; jpeg destuff calls the yield hook per 64 KB; F.model.loadTextures passes maxSide / yield / yieldRows / maxPixels to the image decoders; bench lines (4096^2 16-bit PNG full vs maxSide 1024, JPEG 1/4); build/ regenerated
init.luau (small, backward compatible): loadTextures forwards those four options to F.load.
This commit is contained in:
1 parent
64a2553c0c
commit
8d7f3e4d34
17 files changed
+2695
-1270
No files matched your search
@@ -499,7 +499,7 @@ function Decode.stream(w: number, h: number, depth: number, ct: number, pal: buf
|
||||
y += 1
|
||||
p += stride
|
||||
if hook and y % every == 0 then
|
||||
pcall(hook)
|
||||
pcall(hook :: () -> ())
|
||||
end
|
||||
end
|
||||
pending = if y < h then to - p else 0
|
||||
|
||||
Reference in new issue
Block a user