Skip to content

Commit bfa0421

Browse files
committed
tune mem usage on host side
1 parent d1c90b8 commit bfa0421

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/1_basic_plot_making/0_try_plotoptix.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33

44

55
def main():
6-
optix = TkOptiX()
6+
rt = TkOptiX()
77

88
n = 1000000 # 1M data points
99

1010
xyz = 3 * (np.random.random((n, 3)) - 0.5)
1111
r = 0.02 * np.random.random(n) + 0.002
1212

13-
optix.set_data("plot", xyz, r=r)
14-
optix.show() # note: non-blocking in the interactive shell
13+
rt.set_data("plot", xyz, r=r)
14+
15+
rt.set_ambient(0.9); # set ambient light, brighter than default
16+
17+
rt.show() # note: non-blocking in the interactive shell
1518

1619
print("done")
1720

plotoptix/bin/RnD.SharpOptiX.dll

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)