mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
renderer: avoid allocating for dirty range probes
This commit is contained in:
1 parent
30fa9dddc5
commit
cb378365e1
3 files changed
+19
-9
No files matched your search
@@ -191,6 +191,10 @@ void TestRangeSet() {
|
||||
ranges.Add(0x1200, 0x40);
|
||||
Check(ranges.Contains(0x1010, 0xe0) && !ranges.Contains(0x1010, 0x200),
|
||||
"range set containment did not require full coverage");
|
||||
Check(ranges.Intersects(0x0fff, 2) && ranges.Intersects(0x11ff, 2) &&
|
||||
!ranges.Intersects(0x1100, 0x100) &&
|
||||
!ranges.Intersects(0x1240, 1),
|
||||
"range set intersection did not preserve half-open boundaries");
|
||||
auto intersections = ranges.Intersections(0x1070, 0x1b0);
|
||||
Check(intersections.size() == 2 && intersections[0].address == 0x1070 &&
|
||||
intersections[0].size == 0x90 &&
|
||||
|
||||
Reference in new issue
Block a user