#4079: Refactored weather code
-------------------------------------------------+-------------------------
Reporter: wolftrak | Owner:
Type: patch (an actual patch, not a | Status: new
request for one) | Milestone:
Priority: normal | unspecified
Component: Engine: Resource Management | Version: 3.1
Keywords: | and master
| Operating System: All
| /Non-Specific
-------------------------------------------------+-------------------------
\
\
Hello,
I've refactored the code in atmos.h/.cpp into a class using a singleton
design pattern. The class is lazily allocated, which means it's allocated
on first weather change (snow or rain), thus saving around 17MB of RAM
until the first weather.
Comments and suggestions are welcome.
\
\
\
--
Ticket URL: <http://developer.wz2100.net/ticket/4079>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project