Files
renderdoc/util/test/tests/GL/GL_Leak_Check.py
T
baldurk ec36d155bc Remove redundant type annotations
* These come from long ago when using PyCharm with not as good type checking and
  with renderdoc module stubs that were incomplete so needed help identifying
  types.
2026-09-11 15:04:04 +01:00

18 lines
520 B
Python

import renderdoc as rd
import rdtest
class GL_Leak_Check(rdtest.TestCase):
demos_test_name = 'GL_Leak_Check'
demos_frame_cap = 50000
demos_frame_count = 10
demos_timeout = 120
def check_capture(self):
memory = rd.GetCurrentProcessMemoryUsage()
if memory > 500*1000*1000:
raise rdtest.TestFailureException("Memory usage of {} is too high".format(memory))
rdtest.log.success("Capture {} opened with reasonable memory ({})".format(self.demos_frame_cap, memory))