spring: develop f35d91d0 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
tvo | tvo | develop | 2008-04-21 21:39:12 | develop e670fbae |
Changeset | * Use vectors of objects instead of pointers to prevent allocating and deleting hundreds of small object every CGrassDrawer::Draw(). Note: the std::sort now copies around 8/12 bytes instead of 4. I *think* this is more efficient then separately calling new/delete for every 8/12 byte block just so 4/8 bytes less have to be copied per item in the std::sort, but I *did not* measure this. In either case it's less error prone, which was main motivation for the change. (wrt heap corruption etc.) * Small refactor in AdvTreeDrawer.cpp git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5763 37977431-3df6-0310-b722-df95706aa16b |
|||
mod - rts/Rendering/Env/AdvTreeDrawer.cpp | [ Diff ] [ File ] | |||
mod - rts/Rendering/Env/GrassDrawer.cpp | [ Diff ] [ File ] |