Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[example] Lower example GUI resolution to fit buildbot display #5337

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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