Big Slowdown as mouse passes over mouseEnabled 3d objects..

Software: Away3D 4.x

Mr Margaret Scratcher, Sr. Member
Posted: 21 May 2012 12:11 AM   Total Posts: 344

Hi, I’m working on this current project:

http://www.margaretscratcher.co.uk/projects/CustomBike/index.html

And as you can see, if you click and drag, the framerate drops noticeably as the cursor crosses over the components of the bike.

I’m using David Lenaerts’ HoverDragController, ideally what I need to do is for that to trigger a function in my main class to kill the event listeners when drag starts, and then re-add them when it finishes.

I already have those functions in my main class, I just can’t figure out how to modify the hoverDragController class to do that..

Or is there something else maybe I’m missing that is causing the slowdown?

I’ve tried different hitMethods…

   

Richard Olsson, Administrator
Posted: 16 June 2012 02:35 PM   Total Posts: 1192   [ # 1 ]

Mouse picking is currently being refactored to allow the user (you) to specify more granularly the options for picking, hence hopefully optimizing the performance in cases where full details are not needed.

You can follow this work in the picking_refactor branch of the away3d-core-fp11 repository on GitHub.

   

Mr Margaret Scratcher, Sr. Member
Posted: 19 June 2012 01:08 PM   Total Posts: 344   [ # 2 ]

Thanks, I’ll keep an eye on it!

   
   
‹‹ 4.0 Release Date

X

Away3D Forum

Member Login

Username

Password

Remember_me



X