aboutsummaryrefslogtreecommitdiff
path: root/src/common/range_sets.h
Commit message (Collapse)AuthorAgeFilesLines
* common: pass-through hash for integer and pointer keys; RangeSet::IntersectsTakoroka5 days1-0/+3
| | | | | | | | | | | Common::unordered_map/set defaulted to std::hash, a byte-wise FNV-1a on MSVC for integers and pointers, which boost's flat containers then mix again: the GPU thread's page maps (shader and query cache invalidation, per inline upload) spent ~1% in it. Integer and pointer keys now go through as they are and boost mixes them. BufferCache::IsRegionGpuModified visited every GPU-written range inside the query just to answer yes or no; without per-fence downloads those ranges stay fragmented and it was ~4% of title 1's GPU thread (inline uploads). RangeSet::Intersects answers with one lookup. Inline uploads: 10.5% -> 7.5% of the GPU thread.
* Common: Rename SplitRangeSet to OverlapRangeSetFernando Sahmkow2024-02-051-10/+10
|
* Common: Introduce Range SetsFernando Sahmkow2024-02-041-0/+73