Skip to content

ntf examples when size is fullscreen, fps drops very low #98

@albjeremias

Description

@albjeremias

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:

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!

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions