Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Patch to allocate terrain lightmap & texture once per map #1962

Closed
wzdev-ci opened this issue Jul 3, 2010 · 11 comments
Closed

Patch to allocate terrain lightmap & texture once per map #1962

wzdev-ci opened this issue Jul 3, 2010 · 11 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Jul 3, 2010

resolution_fixed type_patch (an actual patch, not a request for one) | by Safety0ff


See patch.


Issue migrated from trac:1962 at 2022-04-15 22:04:58 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jul 3, 2010

Safety0ff uploaded file radar.diff (2.3 KiB)

Similarly for radar, avoid unecessary expensive operations

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jul 3, 2010

Safety0ff uploaded file terrain.diff (4.5 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Jul 3, 2010

Per commented


Look good to me.

@wzdev-ci
Copy link
Contributor Author

Safety0ff uploaded file terrain.2.diff (4.8 KiB)

@wzdev-ci
Copy link
Contributor Author

Safety0ff uploaded file terrain.3.diff (4.7 KiB)

@wzdev-ci
Copy link
Contributor Author

safety0ff changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

safety0ff set resolution to fixed

@wzdev-ci
Copy link
Contributor Author

safety0ff commented


(In [11211]) Reuse the lightmap texture and buffer since their size will not change between initTerrain and shutdownTerrain calls.
Replace a magic number with a new constant.
Update lightmap on the first frame (gameTime = 0).
Closes #1962.

@wzdev-ci
Copy link
Contributor Author

Git SVN Gateway <gateway@...> commented


(In Warzone2100/warzone2100@a6bb433) Reuse the lightmap texture and buffer since their size will not change between initTerrain and shutdownTerrain calls.
Replace a magic number with a new constant.
Update lightmap on the first frame (gameTime = 0).
Closes #1962.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11211 4a71c877-e1ca-e34f-864e-861f7616d084

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Oct 9, 2010

Git SVN Gateway <gateway@...> commented


In Warzone2100/warzone2100@a6bb433:

#CommitTicketReference repository="" revision="a6bb433a1785ee26880ab318d60082a002b1e031"
Reuse the lightmap texture and buffer since their size will not change between initTerrain and shutdownTerrain calls.
Replace a magic number with a new constant.
Update lightmap on the first frame (gameTime = 0).
Closes #1962.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11211 4a71c877-e1ca-e34f-864e-861f7616d084

1 similar comment
@wzdev-ci
Copy link
Contributor Author

Git SVN Gateway <gateway@...> commented


In Warzone2100/warzone2100@a6bb433:

#CommitTicketReference repository="" revision="a6bb433a1785ee26880ab318d60082a002b1e031"
Reuse the lightmap texture and buffer since their size will not change between initTerrain and shutdownTerrain calls.
Replace a magic number with a new constant.
Update lightmap on the first frame (gameTime = 0).
Closes #1962.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11211 4a71c877-e1ca-e34f-864e-861f7616d084

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant