Skip to content

Commit

Permalink
Always run drawcall overlay in tests
Browse files Browse the repository at this point in the history
* Ideally we would also include mesh output here, but we would need a way to
  clear the postvs cache every so often to avoid bloating, otherwise it will
  generate too much data iterating the whole capture.
  • Loading branch information
baldurk committed Dec 5, 2022
1 parent e5e68ef commit f3fd33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/test/tests/Iter_Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def iter_test(self):
do_vert_debug = 1.0 # Chance of debugging a vertex (if valid)
do_pixel_debug = 1.0 # Chance of doing pixel history at the current event and debugging a pixel (if valid)
mesh_output = 1.0 # Chance of fetching mesh output data
drawcall_overlay = 1.0 # Chance of showing the drawcall overlay
drawcall_overlay = 0.0 # Always show drawcall overlay when we run tests

self.props: rd.APIProperties = self.controller.GetAPIProperties()

Expand Down Expand Up @@ -373,7 +373,7 @@ def iter_test(self):

for event_test in event_tests:
chance = event_tests[event_test]['chance']
if c < chance:
if c < chance or chance == 0.0:
rdtest.log.print("Performing test '{}' on event {}".format(event_test, action.eventId))
event_tests[event_test]['func'](action)
break
Expand Down

0 comments on commit f3fd33d

Please sign in to comment.