Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9546 for code/trunk/src


Ignore:
Timestamp:
Mar 12, 2013, 3:41:50 PM (12 years ago)
Author:
smerkli
Message:

Added a BigExplosion creation to the Pawn constructor.
This loads all the files for the first time and hence
gets rid of the long delay when the first ship is
killed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.cc

    r9348 r9546  
    9898
    9999        this->setSyncMode(ObjectDirection::Bidirectional); // needed to synchronise e.g. aimposition
     100
     101        /* sewper awesome optimization. This loads all the files required for
     102         * the big explosion once in the beginning to make sure the game does
     103         * not start lagging at the first in-action explosion.
     104         */
     105        BigExplosion *chunk = new BigExplosion(this->getCreator());
    100106    }
    101107
Note: See TracChangeset for help on using the changeset viewer.