1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 13:27:14 +00:00

Fix some small performance bottlenecks:

- Vector interpolation. Also removed unused interpolation trigger events.
- GridRender::onRender() (removed Andrew's hack, use fixed map file!)
- make use of glVertex3i() & memchr() in GridRender
- very minor misc things
This commit is contained in:
fgenesis 2012-01-02 21:34:29 +01:00
commit becd31770c
12 changed files with 134 additions and 320 deletions

View file

@ -297,7 +297,7 @@ Vector RenderObject::getInvRotPosition(const Vector &vec)
}
void RenderObject::matrixChain()
{
{
if (parent)
parent->matrixChain();
@ -1256,35 +1256,8 @@ void RenderObject::onUpdate(float dt)
// left that above for safety since I'm not certain. --achurch
if (isHidden()) return;
/*
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 += velocity * dt;
velocity += gravity * dt;
position.update(dt);
velocity.update(dt);
scale.update(dt);