Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimization: Rendpolys are no longer allocated on the stack each and…
… every time they are needed. Added a rendpoly allocation mechanism which allows the same rendpolys to be re-used whenever possible. Number of vertices are also allocated dynamically at this time, this meant I was able to remove the RL_MAX_POLY_SIDES limit. Note, the number of verts is still stored as a byte in rendpoly_t so we have a hard limit of 255 verts now. Rendpoly wall data is now allocated dynamically and only for rendpolys which are to be used as walls. These changes should result in a noticeable speed boost in-game.
- Loading branch information
danij
committed
Oct 8, 2006
1 parent
6f9a3ee
commit 35de1c0
Showing
17 changed files
with
795 additions
and
542 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
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
Oops, something went wrong.