From 69148a9150dda25061e58b0e4f1d24b570939b06 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Thu, 5 Oct 2023 21:20:11 -0400 Subject: process: Allow running multiple On process blocks on process Turn off share wishes/claims default for subprocesses, so you (for now) have to explicitly specify sharing if you want any to happen. On process now only spawns process if it doesn't exist but always runs the code block (which now happens through a statement instead of directly on init). --- virtual-programs/camera.folk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'virtual-programs/camera.folk') diff --git a/virtual-programs/camera.folk b/virtual-programs/camera.folk index 0e1710e7..46daa52e 100644 --- a/virtual-programs/camera.folk +++ b/virtual-programs/camera.folk @@ -15,6 +15,9 @@ set width $::Camera::WIDTH set height $::Camera::HEIGHT On process { + Wish $::thisProcess shares statements like \ + [list /someone/ claims the camera /...anything/] + source pi/Camera.tcl Camera::init $width $height -- cgit v1.2.3 From f4356b98d2041d8188ae61d1025a98db7becdee0 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Fri, 6 Oct 2023 17:41:15 -0400 Subject: display: WIP: Refactor into files; use wishes, not Display:: Expose shader stuff to user programs for the first time. Mostly works, but display thread and main thread run much slower (28fps display, 70fps main). Also introduce dict getwithdefault (helpful for rest options). --- virtual-programs/camera.folk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'virtual-programs/camera.folk') diff --git a/virtual-programs/camera.folk b/virtual-programs/camera.folk index 46daa52e..f997d419 100644 --- a/virtual-programs/camera.folk +++ b/virtual-programs/camera.folk @@ -14,7 +14,7 @@ if {$::thisNode eq "folk-interact"} { set width $::Camera::WIDTH set height $::Camera::HEIGHT -On process { +Start process "camera" { Wish $::thisProcess shares statements like \ [list /someone/ claims the camera /...anything/] -- cgit v1.2.3