@@ -12,6 +12,7 @@ def test_draw_coefficient_function(self, webgpu_env):
1212 mesh = ngs .Mesh (ngs .unit_square .GenerateMesh (maxh = 0.3 ))
1313 scene = Draw (ngs .x * ngs .y , mesh , width = 600 , height = 600 )
1414
15+ webgpu_env .assert_min_fps (scene , min_fps = 60 , label = "scalar CF x*y" )
1516 webgpu_env .assert_matches_baseline (scene , "cf_xy.png" )
1617
1718 def test_draw_cf_3d (self , webgpu_env ):
@@ -22,6 +23,7 @@ def test_draw_cf_3d(self, webgpu_env):
2223 mesh = ngs .Mesh (ngs .unit_cube .GenerateMesh (maxh = 0.5 ))
2324 scene = Draw (ngs .x * ngs .y * ngs .z , mesh , width = 600 , height = 600 , clipping = True )
2425
26+ webgpu_env .assert_min_fps (scene , min_fps = 20 , label = "3D CF + clipping" )
2527 webgpu_env .assert_matches_baseline (scene , "cf_3d.png" )
2628
2729 def test_draw_cf_order1 (self , webgpu_env ):
@@ -42,6 +44,7 @@ def test_draw_cf_order4(self, webgpu_env):
4244 mesh = ngs .Mesh (ngs .unit_square .GenerateMesh (maxh = 0.3 ))
4345 scene = Draw (ngs .sin (10 * ngs .x ), mesh , width = 600 , height = 600 , order = 4 )
4446
47+ webgpu_env .assert_min_fps (scene , min_fps = 60 , label = "order=4 sin(10x)" )
4548 webgpu_env .assert_matches_baseline (scene , "cf_order4.png" )
4649
4750 def test_draw_cf_vector (self , webgpu_env ):
@@ -53,6 +56,7 @@ def test_draw_cf_vector(self, webgpu_env):
5356 cf = ngs .CF ((ngs .x , ngs .y ))
5457 scene = Draw (cf , mesh , width = 600 , height = 600 )
5558
59+ webgpu_env .assert_min_fps (scene , min_fps = 60 , label = "vector CF" )
5660 webgpu_env .assert_matches_baseline (scene , "cf_vector.png" )
5761
5862 def test_draw_cf_vector_component (self , webgpu_env ):
@@ -85,6 +89,7 @@ def test_draw_deformation_2d(self, webgpu_env):
8589 deformation = ngs .CF ((0 , ngs .sin (5 * ngs .x ), 0 ))
8690 scene = Draw (cf , mesh , width = 600 , height = 600 , deformation = deformation )
8791
92+ webgpu_env .assert_min_fps (scene , min_fps = 60 , label = "deformation 2D" )
8893 webgpu_env .assert_matches_baseline (scene , "deformation_2d.png" )
8994
9095 def test_draw_colormap_range (self , webgpu_env ):
@@ -134,6 +139,7 @@ def test_complex_scalar_real(self, webgpu_env):
134139 gf .Set (ngs .sin (3 * ngs .x ) + 1j * ngs .cos (3 * ngs .y ))
135140 scene = Draw (gf , mesh , width = 600 , height = 600 , order = 3 )
136141
142+ webgpu_env .assert_min_fps (scene , min_fps = 60 , label = "complex H1 order=3" )
137143 webgpu_env .assert_matches_baseline (scene , "complex_scalar_real.png" )
138144
139145 def test_complex_scalar_abs (self , webgpu_env ):
0 commit comments