sannybuilder / docs

Sanny Builder Documentation portal
https://docs.sannybuilder.com
10 stars 3 forks source link

Provide documentation on Limits of SA Mobile and Remastered #2

Open OrionSR opened 4 years ago

OrionSR commented 4 years ago

In particular, I just fielded a PM on global variable limits for mobile.

There are a few other differences in limits, I should be able to collect the required info but don't want to lose track of the issue in the meantime.

Is it worth the trouble to document that PS2 only supports 400 cargens?

x87 commented 4 years ago

Any documentation can be useful at some point. In particular information on limits. At some point we can integrate extra checks in the compiler (or in third-party tools) to run analysis and give a warning if the number of entities is close to the limit.

OrionSR commented 4 years ago

These are the limits I can establish or confirm using save file and main.scm reference.

SA_Mobile Limits main size 200000 mission size 69000 running threads 96 local variables 40 + 2 timers gosub levels 8 radar blips 250 pickups 620 last opcode 0a8d, Remastered 0a90 save garages 16..18,24..32,39..45

Other useful info from original reference: For garages (including pns, 8ball, mission garages, car crusher etc): GTA3 - 32 GTAVC - 32 GTASA - 50 (although in ipls there are 52) The unnamed garages don't seem to exist in game.

x87 commented 4 years ago

Updated in https://docs.sannybuilder.com/scm-documentation/gta-limits