[GPU] Occlusion query faking extension

This commit is contained in:
Gliniak
2025-05-14 20:53:47 +02:00
committed by Radosław Gliński
parent fb3c12d362
commit b447699a5b
3 changed files with 34 additions and 20 deletions

View File

@@ -55,10 +55,14 @@ DEFINE_bool(
"when MSAA is used with fullscreen passes.",
"GPU");
DEFINE_int32(query_occlusion_fake_sample_count, 100,
DEFINE_int32(query_occlusion_sample_lower_threshold, 80,
"If set to -1 no sample counts are written, games may hang. Else, "
"the sample count of every tile will be incremented on every "
"EVENT_WRITE_ZPD by this number. Setting this to 0 means "
"everything is reported as occluded.",
"GPU");
UPDATE_from_int32(query_occlusion_fake_sample_count, 2024, 9, 23, 9, 1000);
DEFINE_int32(
query_occlusion_sample_upper_threshold, 100,
"Set to higher number than query_occlusion_sample_lower_threshold. This "
"value is ignored if query_occlusion_sample_lower_threshold is set to -1.",
"GPU");