Skip to content

Commit

Permalink
[example] Lower example GUI resolution to fit buildbot display (#5337)
Browse files Browse the repository at this point in the history
  • Loading branch information
feisuzhu authored Jul 6, 2022
1 parent e1293f4 commit 3039913
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/taichi/examples/autodiff/diff_sph/diff_sph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion python/taichi/examples/ggui_examples/mpm3d_ggui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions python/taichi/examples/simulation/euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3039913

Please sign in to comment.