mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
Revert "Fix some small performance bottlenecks:"
This reverts commit 2d7eeb4781
.
This commit is contained in:
parent
b26eac658a
commit
16ae453431
12 changed files with 345 additions and 183 deletions
|
@ -297,7 +297,7 @@ Vector RenderObject::getInvRotPosition(const Vector &vec)
|
|||
}
|
||||
|
||||
void RenderObject::matrixChain()
|
||||
{
|
||||
{
|
||||
if (parent)
|
||||
parent->matrixChain();
|
||||
|
||||
|
@ -1256,8 +1256,35 @@ void RenderObject::onUpdate(float dt)
|
|||
// left that above for safety since I'm not certain. --achurch
|
||||
if (isHidden()) return;
|
||||
|
||||
position += velocity * dt;
|
||||
velocity += gravity * dt;
|
||||
/*
|
||||
width.update(dt);
|
||||
height.update(dt);
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
if (!parent && !children.empty() && shareAlphaWithChildren)
|
||||
{
|
||||
propogateAlpha();
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
if (flipTimer.updateCheck(dt))
|
||||
{
|
||||
if (flipState == 0)
|
||||
{
|
||||
_fh = !_fh;
|
||||
flipState = 1;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if (!velocity.isZero())
|
||||
position += velocity * dt;
|
||||
if (!gravity.isZero())
|
||||
velocity += gravity * dt;
|
||||
position.update(dt);
|
||||
velocity.update(dt);
|
||||
scale.update(dt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue