- Timestamp:
- Aug 26, 2014, 7:29:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/MapRendering/MapRendering.cs
r130 r132 24 24 private MapRenderBlockBuffer[] zoomLevelBuffers = new MapRenderBlockBuffer[Constants.ZOOMLEVELS]; 25 25 private Color[] chunkColors = new Color[Constants.MAP_CHUNK_SIZE * Constants.MAP_CHUNK_SIZE]; 26 private System.Timers.Timer chunkSaveTimer = new System.Timers.Timer ( 100);26 private System.Timers.Timer chunkSaveTimer = new System.Timers.Timer (500); 27 27 private bool renderingFullMap = false; 28 28 29 29 private MapRendering () 30 30 { 31 string regionSaveDir = StaticDirectories.GetSaveGameRegionDir ();32 rfm = new RegionFileManager (regionSaveDir, regionSaveDir, 1, false);33 31 Constants.MAP_DIRECTORY = StaticDirectories.GetSaveGameDir () + "/map"; 34 32 … … 64 62 MicroStopwatch microStopwatch = new MicroStopwatch (); 65 63 64 string regionSaveDir = StaticDirectories.GetSaveGameRegionDir (); 65 rfm = new RegionFileManager (regionSaveDir, regionSaveDir, 1, false); 66 66 67 if (Directory.Exists (Constants.MAP_DIRECTORY)) 67 68 Directory.Delete (Constants.MAP_DIRECTORY, true); … … 88 89 } 89 90 SaveAllBlockMaps (null, null); 91 92 rfm = null; 90 93 91 94 byte[] array = fullMapTexture.EncodeToPNG ();
Note:
See TracChangeset
for help on using the changeset viewer.