fenomas Posted April 4, 2015 Share Posted April 4, 2015 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. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 4, 2015 Share Posted April 4, 2015 Hum this is clearly a bug I'll fix it for next push Quote Link to comment Share on other sites More sharing options...
fenomas Posted April 5, 2015 Author Share Posted April 5, 2015 Cheers! Incidentally this bug seems to greatly affect visible mesh selection. So once it's fixed my Octree questions may no longer be important. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.