refacto(exporter): draw maps at 4096 px/cell faster in smaller blocks, the output unchanged #84
No reviewers
Labels
No labels
bug
feature request
maps
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Superkooka/SkyrimSourceExporter!84
Loading…
Reference in a new issue
No description provided.
Delete branch "refacto/map-small-regions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Grid and PMTiles maps now draw blocks of 4 x 4 tiles, one per logical core from
2 to 32, instead of blocks of 16 x 16 tiles, 2 at a time. More regions keep the
cores busy, and a smaller block redraws fewer levels. Plain PNG bands stay at 2
at a time: a band holds 16 times a block's pixels.
Add --jobs to the map commands, 'auto' or a count, to set the regions drawn at
once. Each region's own loops still use every core, so it doesn't limit the CPU.
The region pools follow the count, and the manifest leaves the option out.
On 16 logical cores, Blackreach at 4096 px/cell goes from 213 s and 8.7 GB to
133 s and 6.6 GB, Skuldafn from 48 s to 45 s and Whiterun from 16 s to 15 s,
both from about 7 GB to under 5 GB. PNG hashes are identical, also on 4 and 8
logical cores on shorter runs. PMTiles archives differ in tile order only, with
no tile or pixel changed on Whiterun. Tamriel at 4096 px/cell was not run.
Benchmarks
Base
41436065against headf8d07131, alternating over 5 rounds on the same runner.Times are per operation, the fastest round of each side. A change counts only when every round shows it beyond the error margins of both runs; otherwise it is marked as noise.
A shared runner is noisy: trust the allocations more than the times, and confirm a time on an idle machine.
LandscapeRasterizerBenchmarks.DrawLandscapeRasterizerBenchmarks.DrawAll benchmarks (10)
LandscapeRasterizerBenchmarks.DrawLandscapeRasterizerBenchmarks.DrawObjectRasterizerBenchmarks.DrawObjectRasterizerBenchmarks.DrawObjectRasterizerBenchmarks.DrawObjectRasterizerBenchmarks.DrawObjectRasterizerBenchmarks.DrawObjectTextureBenchmarks.SampleObjectTextureBenchmarks.SamplePngEncoderBenchmarks.Encoderefacto(exporter): draw grid maps in smaller blocks, one per logical core, the output unchangedto refacto(exporter): draw maps at 4096 px/cell faster in smaller blocks, the output unchanged