mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
Fix some small performance bottlenecks:
- Vector interpolation. Also removed unused interpolation trigger events. - Game::collideCircleWithGrid() - GridRender::onRender() (removed Andrew's hack, use fixed map file!) - make use of glVertex3i() & memchr() in GridRender
This commit is contained in:
parent
99e32e0ee7
commit
2d7eeb4781
12 changed files with 183 additions and 345 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue