Projects
AGS Engine | Scripts | Increase AGS Script's stack limit |
---|---|---|
Crimson Wizard | Currently AGS script has a limit of 250 simple variables [b]on stack[/b] (i.e. declared locally) and precisely 3996 bytes for array and "old string" data. While this seem to be not very common thing for local variables to require more space, it might have sense to increase this limit, and implement expanding stack allocation. A note should be made, that contrary to "real" programming languages, AGS Script's "stack" is not absolutely a stack, for it is created in dynamic memory. AGS interpreter simply tries to emulate x86 processor behavior, but that imposes unnecessary restrictions. I guess it will be simplier to handle it same way as global script data is handled. |