mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
b150bd172c8d36ec0bdab3c6114844df321577b4
o A define ENABLE_ENCYCLOPEDIA defines, if the encyclopedia code should be compiled o What is happening here is encyclopedia has a lot of really big structures (ENCYCLOPEDIA_LOCATION) and then a lot of arrays of size NUM_SECTOR, NUM_PROFILES, NUMITEMS which are fairly sizable themselves. o What the problem with doing this is when you need to allocate memory it typically needs to go to virtual memory to get large blocks of memory (malloc and related routines all do this) but you only have 2GB worth of virtual space as a pointer is 32 bits and user mode gets half of that 00000000-7FFFFFFF for addressing. This statically allocated space is taking up 7/8ths of the virtual address space. When animations or maps need to be loaded there might not be enough virtual space left due to fragmentation. o To see the amount of committed memory, open TaskManager and add the "Committed Memory" column to the view git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5212 3b4a5df2-a311-0410-b5c6-a8a6f20db521
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1017 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Last 1.13 SVN 4721 Compilation of UB : Set #define JA2UB and #define JA2UBMAPS in file builddefines.h. Compilation of JA2 : Rem #define JA2UB and #define JA2UBMAPS in file builddefines.h. Example : UB : #define JA2UB #define JA2UBMAPS JA2 : //#define JA2UB //#define JA2UBMAPS www.legion.zone.zg.pl
Languages
C++
90.4%
C
9.3%
HTML
0.2%
CMake
0.1%