Avoid calling GetCurrentProcess().WorkingSet64 as it's very bad for the memory allocations.
Same for reading the "allocated bytes/sec" data - use 'typeperf' to monitor this data.
Memory allocation optimisation for materials - avoid creating enumerators for EffectPasses on every call and cache them instead.
Memory allocation optimisation for RenderItems - use a static list with custom resizing and enumeration. Caution: this is pretty experimental.
git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@422 a9f3cfff-6c41-7446-b0ca-052bd761e6eb