From 0ba7064c24348e1504b1422270327d4cfd71b3f6 Mon Sep 17 00:00:00 2001 From: Proton Date: Wed, 6 Jul 2022 11:28:55 +0800 Subject: [PATCH] [example] Lower example GUI resolution to fit buildbot display --- python/taichi/examples/autodiff/diff_sph/diff_sph.py | 2 +- python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py | 2 +- python/taichi/examples/ggui_examples/mass_spring_game_ggui.py | 2 +- python/taichi/examples/ggui_examples/mpm3d_ggui.py | 2 +- python/taichi/examples/simulation/euler.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/taichi/examples/autodiff/diff_sph/diff_sph.py b/python/taichi/examples/autodiff/diff_sph/diff_sph.py index fa892a996f6ec..fd01a320b6be9 100644 --- a/python/taichi/examples/autodiff/diff_sph/diff_sph.py +++ b/python/taichi/examples/autodiff/diff_sph/diff_sph.py @@ -26,7 +26,7 @@ INFER_OUTPUT_IMG = False arch = ti.vulkan if ti._lib.core.with_vulkan() else ti.cuda ti.init(arch=arch, device_memory_fraction=0.5, random_seed=5) -screen_res = (1000, 1000) +screen_res = (800, 800) dtype_f_np = np.float32 real = ti.f32 diff --git a/python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py b/python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py index 72a5d29ff2ecf..04c1332e05e66 100644 --- a/python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py +++ b/python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py @@ -121,7 +121,7 @@ def update_vertices(): def main(): - window = ti.ui.Window("Taichi Cloth Simulation on GGUI", (1024, 1024), + window = ti.ui.Window("Taichi Cloth Simulation on GGUI", (768, 768), vsync=True) canvas = window.get_canvas() canvas.set_background_color((1, 1, 1)) diff --git a/python/taichi/examples/ggui_examples/mass_spring_game_ggui.py b/python/taichi/examples/ggui_examples/mass_spring_game_ggui.py index d3a392ad73a9e..e8e137efdddea 100644 --- a/python/taichi/examples/ggui_examples/mass_spring_game_ggui.py +++ b/python/taichi/examples/ggui_examples/mass_spring_game_ggui.py @@ -120,7 +120,7 @@ def render(): def main(): - window = ti.ui.Window('Explicit Mass Spring System', (1024, 1024), + window = ti.ui.Window('Explicit Mass Spring System', (768, 768), vsync=True) canvas = window.get_canvas() diff --git a/python/taichi/examples/ggui_examples/mpm3d_ggui.py b/python/taichi/examples/ggui_examples/mpm3d_ggui.py index 6b302f4b8df2b..d2a028ec836a7 100644 --- a/python/taichi/examples/ggui_examples/mpm3d_ggui.py +++ b/python/taichi/examples/ggui_examples/mpm3d_ggui.py @@ -243,7 +243,7 @@ def init(): init() -res = (1920, 1080) +res = (1080, 720) window = ti.ui.Window("Real MPM 3D", res, vsync=True) canvas = window.get_canvas() diff --git a/python/taichi/examples/simulation/euler.py b/python/taichi/examples/simulation/euler.py index eacbe2db63cd1..132f73b2ac5f0 100644 --- a/python/taichi/examples/simulation/euler.py +++ b/python/taichi/examples/simulation/euler.py @@ -10,14 +10,14 @@ real = ti.f32 ti.init(arch=ti.gpu, default_fp=real) -N = 1024 # grid resolution +N = 512 # grid resolution CFL = .9 # keep below 1 method = 1 # 0:muscl, 1:thinc IC_type = 0 # 0:sod BC_type = 0 # 0:walls img_field = 0 # 0:density, 1: schlieren, 2:vorticity, 3: velocity mag -res = 1024 # gui resolution +res = 512 # gui resolution cmap_name = 'magma_r' # python colormap use_fixed_caxis = 0 # 1: use fixed caxis limits, 0: automatic caxis limits fixed_caxis = [0.0, 5.0] # fixed caxis limits