I'm not exactly sure how to define it, but the call stack is basically a 
path of function calls that lead you up to the current position in the 
program. If it goes over a certain limit (in bgt that's 10000 calls to get 
back to main) the program crashes. There's a difference between a function 
and being part of the call stack; you can have as many functions as you want 
in the code (though they may take up more memory depending on how you wrote 
the code). You just can't have a massive call stack.


--------------------------------------------------
From: "Nicol" <nicoljaco...@telkomsa.net>
Sent: Saturday, August 30, 2014 10:39 AM
To: "'Gamers Discussion list'" <gamers@audyssey.org>
Subject: Re: [Audyssey] clear call stack in bgt

What is a call stack?
And what will happen if a game have more than 10000 functions?
Will it take up too much CPU and memory?
Is there any real danger if the call stack is increasing a lot?
Unfortunately I do not have a solution for you as I am a very beginner with
bgt  myself.
But this call stack subject  sounds interesting .
What I know as a beginner is that large programs take up more cpu and memory
than small programs.
With my very limited knowledge of the functioning of software I'd say as
long as the code does not take up lots of cpu and memory you can go
adventurous and have more than 10000 functions.
Others with better knowledge of programming may correct me.

On 8/29/14, john <jpcarnemo...@gmail.com> wrote:
> HI all,
> As the subject suggests, I'm wondering if its possible to clear (or
> increase the size of) the call stack in bgt (or any programming
> language, for that matter). I'm having difficulty from keeping my
> projects from continually increasing the size of the stack, and while
> this would be just fine for a small program, I'm pretty sure my major
> project is going to go over 10000 eventually, possibly regardless of
> how perfectly the player performs. If there's no way to do this, are
> there any tips I can get as to how to make a program continue running
> without increasing the call stack, as I'm going to have to be
> constantly switching between functions, that need to be able to call
> each other a theoretically infinite number of times.
>
> ---
> Gamers mailing list __ Gamers@audyssey.org If you want to leave the
> list, send E-mail to gamers-unsubscr...@audyssey.org.
> You can make changes or update your subscription via the web, at
> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
> All messages are archived and can be searched and read at
> http://www.mail-archive.com/gamers@audyssey.org.
> If you have any questions or concerns regarding the management of the
> list, please send E-mail to gamers-ow...@audyssey.org.
>

---
Gamers mailing list __ Gamers@audyssey.org If you want to leave the list,
send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gamers@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.


---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to 
gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gamers@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org. 


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gamers@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.

Reply via email to