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

Attached Mesh Renderers Lagging Frames In Cameras #151

Open
lxw404 opened this issue Oct 14, 2023 · 6 comments
Open

Attached Mesh Renderers Lagging Frames In Cameras #151

lxw404 opened this issue Oct 14, 2023 · 6 comments
Assignees
Labels
bug Something isn't working as intended. triaged This issue has been assessed

Comments

@lxw404
Copy link

lxw404 commented Oct 14, 2023

Describe the bug?

I've managed to catch several instances where taking an in-game screenshot will capture a mesh renderer that is attached to an avatar seemingly updating slower than the actual avatar. This is especially visible at high speeds where clothing, attachments, and even interactable items will lag frames behind the actual armature.

To Reproduce

  • Have a friend equip an avatar with attached mesh renderers separate from the main avatar's skinned mesh renderer
  • Observe their avatar moving at high speeds
  • Take a screenshot of them moving

Expected behavior

The attachments should be moving 1:1 with the avatar's armature. Although this seems to look like the case in game, it may actually be a single frame delay that's not noticeable normally.

Screenshots

An example where my choker and earring is lagging the motion of my avatar in a screenshot:
2023-09-26 11 16 27

Spex legs moving (pants lagging):
2023-10-13 00 49 49

Spex while moving (bursting out of their clothes):
2023-10-13 00 49 45

Resonite Version Number

2023.10.13.743

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop, Valve Index

Log Files

No response

Additional Context

No response

Reporters

LuxKitty, Spex

@HamoCorp
Copy link

HamoCorp commented Dec 21, 2023

I'v noticed this alot we have been doing weekly dance events since the release of resonite. when we take pictures while dancing meshes on the avatar move. Multiple people have taken these pictures and still have the same problem. seems to occur alot during fast movement since pictures when we are standing still are normal.

Screenshot 2023-12-21 170220
Screenshot 2023-12-21 170531
Screenshot 2023-12-21 171114
screenshot
2023-10-25 22 54 31
Screenshot 2024-01-30 065053
Screenshot 2024-01-30 065135
Screenshot 2024-01-30 065337
Screenshot 2024-01-30 065428
Screenshot 2024-01-30 065538
Screenshot 2024-01-30 065638

Screenshot 2024-01-30 065733
Screenshot 2024-01-30 065904
Screenshot 2024-01-30 070038

@shiftyscales

This comment was marked as outdated.

@shiftyscales shiftyscales added enhancement Suggested addition of a new feature. and removed bug Something isn't working as intended. labels Jan 30, 2024
@shiftyscales shiftyscales removed their assignment Jan 30, 2024
@shiftyscales shiftyscales added the triaged This issue has been assessed label Jan 30, 2024
@lxw404
Copy link
Author

lxw404 commented Jan 30, 2024

The implication that at the moment there is not a way of consistently transforming renderers per frame is quite concerning, especially in an application which touts its ability to have synchronized real time data updates.

Is this a fundamental flaw of the architecture, or an oversight of how the current Unity renderer is being used, or something completely different?

Side note: this issue happens all the time, I'm constantly looking back on screenshots and seeing it everywhere and it's really disheartening.

@Frooxius Frooxius added bug Something isn't working as intended. and removed enhancement Suggested addition of a new feature. labels Jan 30, 2024
@Frooxius
Copy link
Member

This is definitely a bug, there's no functional/intentional reason to have meshes lag like this and produce inconsistent results.

I've actually looked into this in the past and tried to schedule the rendering to happen at the moment with everything else, to ensure this won't happen, but it didn't help. It is a bit odd, because it should be submitting the rendering at the same time when all meshes were already updated.

I think I have a hunch on what would help fix this though and might need to update where the rendering happens. But we might also need to force the skinned mesh recalculation to happen for these renders, which might trigger more instances of crashes. I can have a look at some point regardless though and see what could help it.

@Frooxius Frooxius self-assigned this Jan 30, 2024
@JackTheFoxOtter
Copy link

While very hillarious, this can end up ruining screenshots if people have avatars that use multiple skinned meshes (or are like me and accidentally separated meshes by materials years ago and never bothered to fix it).
image

@Psychpsyo
Copy link

Psychpsyo commented Mar 12, 2024

This also happens to things that are parented to the bones of dynamic bone chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended. triaged This issue has been assessed
Projects
Status: Small cool things to do
Development

No branches or pull requests

6 participants