jiweigang1 Posted June 27, 2014 Share Posted June 27, 2014 i creat about 400 boxes width ActionManager , it becomes very slow to move the camera and i do not want the event to bubble , how can i do it? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 Each time the mouse is moving it checks ALL actionManager to check if they have a trigger to launch. That's why Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 You can speed things up by setting box.isPickable = false; Quote Link to comment Share on other sites More sharing options...
jiweigang1 Posted June 27, 2014 Author Share Posted June 27, 2014 i see there are many actionManagers, but they have same trigger BABYLON.ActionManager.OnCenterPickTrigger if there is no click event u dont have to check them at all i think that will speed things up Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 Yes I have to work on some optimizations Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted June 30, 2014 Share Posted June 30, 2014 Maybe it's also related to getBoundingClientRect (see post http://www.html5gamedevs.com/topic/7431-bug-in-actionmanager-system-wrong-event-positionning-in-some-cases/ ). I'm looking for a way to optimise this, I'll tell you my results. 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.