-
-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch
PROJECTILE
to use PagedEntityContainer<PROJECTILE>
as back…
…ing storage The game still uses `psProjectileList` to maintain stable and predictable order of iteration for projectiles, but the individual `PROJECTILE` instances are allocated from the global `PagedEntityContainer<PROJECTILE>` instance. `proj_SendProjectileAngled()` now doesn't automatically add the spawned penetrating projectile to `psProjectileList`, which is a little step back in terms of ease of use (need to additional code so that spawned projectiles are added to the `psProjectileList` manually in relevant cases). But it allows to remove additional checks inside the tight loop in `proj_UpdateAll()`, which enumerates all projectiles currently in play, thus considerably speeding up this frequent and expensive operation. Signed-off-by: Pavel Solodovnikov <[email protected]>
- Loading branch information
Showing
6 changed files
with
99 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters