-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: throttle attempt (has console.log for inspection) (#65)
I have implemented throttling of parameter change execution. communication with worker was also changed so entites are not sent as event, but as a response ro runMain and runScript. This allows to wrap those calls to Promise neatly, and also use await. it is supposed to skip param changes that arrive during worker execution but make sure last state of params is rendered reliably ![image](https://github.com/hrgdavor/jscadui/assets/2480762/7842c965-3293-4817-9ad0-7cd5e04877ca) I loaded the script http://3d.hrg.hr/jscad/three/examples/parametric_butt_hinge_3.7.js and changed `view options->throw angle` rapidly
- Loading branch information
Showing
8 changed files
with
86 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
export * from '@jscadui/render-threejs/bundle.example.js' | ||
// based on '@jscadui/render-threejs/bundle.example.js' | ||
|
||
// export { StereoCamera } from 'three/src/cameras/StereoCamera.js'; | ||
export { PerspectiveCamera } from 'three/src/cameras/PerspectiveCamera.js'; | ||
export { Scene } from 'three/src/scenes/Scene.js'; | ||
export { Color } from 'three/src/math/Color.js'; | ||
export { AmbientLight } from 'three/src/lights/AmbientLight.js'; | ||
export { HemisphereLight } from 'three/src/lights/HemisphereLight.js'; | ||
export { DirectionalLight } from 'three/src/lights/DirectionalLight.js'; | ||
// export { PlaneGeometry } from 'three/src/geometries/PlaneGeometry'; | ||
export { EdgesGeometry } from 'three/src/geometries/EdgesGeometry.js'; | ||
export { MeshPhongMaterial } from 'three/src/materials/MeshPhongMaterial.js'; | ||
export { LineBasicMaterial } from 'three/src/materials/LineBasicMaterial.js'; | ||
// export { MeshBasicMaterial } from 'three/src/materials/MeshBasicMaterial.js'; | ||
export { WebGLRenderer } from 'three/src/renderers/WebGLRenderer.js'; | ||
export { Mesh } from 'three/src/objects/Mesh.js'; | ||
export { Object3D } from 'three/src/core/Object3D.js'; | ||
export { Raycaster } from 'three/src/core/Raycaster.js'; | ||
export { InstancedBufferGeometry } from 'three/src/core/InstancedBufferGeometry.js'; | ||
export { BufferGeometry } from 'three/src/core/BufferGeometry.js'; | ||
export * from 'three/src/core/BufferAttribute.js'; | ||
export { InstancedMesh } from 'three/src/objects/InstancedMesh.js'; | ||
export { LineSegments } from 'three/src/objects/LineSegments.js'; | ||
export { Group } from 'three/src/objects/Group.js'; | ||
export { Line } from 'three/src/objects/Line.js'; | ||
export { Matrix4 } from 'three/src/math/Matrix4.js'; | ||
export { Vector3 } from 'three/src/math/Vector3.js'; | ||
// export { Euler } from 'three/src/math/Euler.js'; | ||
// export { Texture } from 'three/src/textures/Texture.js'; | ||
// export * from 'three/src/constants.js'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters