-
Notifications
You must be signed in to change notification settings - Fork 68
Description
When the container variable is not resized to fit the resolution of the webcam video, then the fps drop to very low, you can just comment this 2 lines:
jsartoolkit5/examples/nft_improved_worker/threejs_wasm_worker.js
Lines 104 to 105 in 4a2fd7b
| container.style.width = sw + "px"; | |
| container.style.height = sh + "px"; |
I also changed the lines in css of the size of the canvas where everything is draw, and it affected the fps!
jsartoolkit5/examples/css/video-style.css
Lines 82 to 83 in 4a2fd7b
| width: 100%; | |
| height: 100%; |
to:
width: 800px;
height: 800px;
I also need a better understand of the canvas_process and the pscale and sscale and why the projection matrix is being multiplied by this ratio.. looks so complicated the way its done.. is this ratioW, ratioH just the ratio between the size of the image of the camera, and the output of the canvas?