- Steam App
- Screeps: World (464350)
- Event type
- patch note
- Published
- 27 February 2017 - 10:53:33 UTC
- Source
- steam_community_announcements
Memory segments Introduced new memory segments feature: You can have up to 10 MB of additional memory by activating asynchronous memory segments.Each memory segment is a string with an ID from 0 to 99.Maximum segment data length is 100 KB.Segments are asynchronous, you should request them using RawMemory.setActiveSegments. The data will be available on the next tick.You cannot have more than 10 segments active at the same time.Active segments are available in RawMemory.segments object and are saved automatically.Activating and saving segments have no added CPU cost. Example: RawMemory.setActiveSegments(); // on the next tick console.log(RawMemory.segments); console.log(RawMemory.segments); RawMemory.segments = '{"foo": "bar", "counter": 15}'; You can use this feature...