Skip to content

small BillBoard optimizations #17825

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

Merged
merged 2 commits into from
May 22, 2017
Merged

Conversation

madrazo
Copy link
Contributor

@madrazo madrazo commented May 16, 2017

-Quick return in visit if it is not visible and has no children.
-Comment out getNodeToWorldTransform because it is dead code (doesn't do anything)
Reference issue: #17690

-Quick return in visit if it is not visible and has no children.  
-Comment out getNodeToWorldTransform because it is death code (doesn't do anything)
@@ -186,8 +191,8 @@ bool BillBoard::calculateBillboardTransform()
}
camDir.normalize();

Quaternion rotationQuaternion;
this->getNodeToWorldTransform().getRotation(&rotationQuaternion);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why comment the codes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better remove comments?

@minggo minggo added this to the 3.16 milestone May 22, 2017
@minggo minggo merged commit 5a52189 into cocos2d:v3 May 22, 2017
@madrazo madrazo deleted the billboardoptimizations branch May 22, 2017 14:52
stevetranby added a commit to stevetranby/cocos2d-x that referenced this pull request Jun 16, 2017
* commit '639737286f594f3e06c07b22b352dddb01858883':
  before draw event (cocos2d#17669)
  Handle auto layout with scaled widget (cocos2d#17822)
  fix to problem with updating APK in Google Play keeping old OBB (cocos2d#17689)
  update console to fix compiling issue on with Xcode 8.3+ (cocos2d#17862)
  Fix iskindof (cocos2d#17785)
  [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#17857)
  fix action running times for instant actions (cocos2d#17849)
  make fps stable on iOS (cocos2d#17852)
  [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#17848)
  LayerRadialGradient works on mac and iOS (cocos2d#17826)
  Fixing serious XMLHTTP leak when CC_ENABLE_GC_FOR_NATIVE_OBJECTS enabled (cocos2d#17844)
  Call 'update' method in 'stop/stopAll' to cleanup immediately (cocos2d#17846)
  Add const keyword to Node::isScheduled (cocos2d#17841)
  small BillBoard optimizations (cocos2d#17825)
  Allow visit Sprite without camera for render to texture (cocos2d#17824)

# Conflicts:
#	cocos/base/CCDirector.cpp
#	cocos/base/CCDirector.h
#	cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp
#	cocos/ui/UILayoutManager.cpp
#	tools/cocos2d-console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants