Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading player model causes lag on certain computers #127

Closed
RSNFreud opened this issue Dec 31, 2022 · 1 comment
Closed

Loading player model causes lag on certain computers #127

RSNFreud opened this issue Dec 31, 2022 · 1 comment

Comments

@RSNFreud
Copy link

On certain devices (trying to find which ones) when loading my site with the skin loader their computer freezes up and it uses a lot of ram.

https://catalyst.freud-online.co.uk/ is the site

useEffect(() => {
    if (!Object.keys(user).length) return;
    const skin = new skinview3d.SkinViewer({
      canvas: canvas.current,
      width: 300,
      height: 515,
      skin: `https://crafatar.com/skins/${user.playerUUID}/`,
    });
    skin.zoom = 1;
    skin.controls.enableZoom = false;
  }, [user]);
@RSNFreud
Copy link
Author

Related to #119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant