Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Traveler on Fri 15/12/2006 06:13:34

Title: Limit to number of registered plugin functions? (SOLVED)
Post by: Traveler on Fri 15/12/2006 06:13:34
I'm working on a plugin that is likely to have a lot of functions registered during run-time. Is there any limit to the number of registered functions (or in the script header?)

Is there a negative impact for having lots and lots of registered functions (like excessive memory use or performance degradation due to lookups, etc.)?
Title: Re: Is there a limit to # of registered plugin functions?
Post by: Pumaman on Sat 16/12/2006 19:11:33
There is a total overall limit on the number of functions that can be exported by all plugins added together, which in theory it would be possible for a single plugin to exceed. I think it's in the region of a couple of hundred though, so it shouldn't be an issue.
Title: Re: Is there a limit to # of registered plugin functions?
Post by: Traveler on Mon 18/12/2006 03:17:17
CJ, thanks for your reply. Strictly theoretically speaking :), how hard would it be to increase this limit to a thousand or two, if there was a request like that? (Again, theoretically speaking.) I'm working on a plugin that will be the backbone of my game and it will have a lot of functions and I also plan on using other plugins. At this moment, I don't have anything near the current limit, so it's not a problem, but I'd like to be prepared if and when I get close to that limit, so that I can ask for more in time. Would something like that be hard to do or relatively easy?
Title: Re: Is there a limit to # of registered plugin functions?
Post by: Pumaman on Mon 18/12/2006 20:47:56
I wouldn't imagine it would be too difficult to do, if the need arose.