This commit adds the ability to test Eevee viewport playback performance tests.
Tests should be placed in lib/benchmarks/eevee/*/*.blend. rBL62962: Add test files for viewport playback performance. added
initial test files. See https://wiki.blender.org/wiki/Tools/Tests/Performance how
to set it up.
To record the playback performance the test start the viewport playback, and adds
a post frame change handler.
This handler will go over the next steps:
- Ensures the viewport is set to rendered mode.
- Wait for shaders to be compiled. Utilizes bpy.app.is_job_running function when available (v3.3) to wait for shader compilation to finish. When not available will wait for one minute.
- Draw several warmup frames
- Record for 10 seconds tracking the number of frames drawn and performance counters.
- When ready print the result to the console. The results will be extracted when the benchmark has run.
Example report
master v3.0 v3.1 v3.2 T88219 0.0860s 0.0744s 0.0744s 0.0851s blender290-fox 1.3056s 0.8744s 0.7994s 1.2809s
