webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
343 stars 207 forks source link

Tilde grab is not frame synced #3646

Open avaer opened 2 years ago

avaer commented 2 years ago

You can easily see it glitching with the basic chest in street.scn:

https://user-images.githubusercontent.com/6926057/185013362-55b60339-2f61-4633-b0f4-95fa6ecc7080.mp4

It's hard to see in this video but it is very out of sync with the camera at 60 FPS.

avaer commented 2 years ago

Locally check out and patch the repo path to local to test.

https://github.com/webaverse/chest https://github.com/webaverse/app/blob/0f2afad7836158756627babdbe158722117f7ab9/scenes/street.scn#L195

avaer commented 2 years ago

I think this is the grabbing code: https://github.com/webaverse/app/blob/0f2afad7836158756627babdbe158722117f7ab9/game.js#L384

It could use factoring/cleanup.