Jump to content

Something is screwy with synchronization


fenomas
 Share

Recommended Posts

Hi,

 

Something seems to be screwy with synchronization. As far as I can tell, if a mesh has a parent then its _parentRenderId never gets updated, which means mesh#isSynchronizedWithParent never returns true. Demo

 

This causes all meshes with parents to recompute their world matrix every frame, which kills performance in large scenes. 

 

From context I'm guessing the problem might stem from this line, partly since it makes the following assignment redundant. But lack of comments makes it very hard to guess how _renderId relates to _currentRenderId, or isSynchronized relates to _isSynchronized, etc., and what they're all supposed to be doing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...