-
-
Notifications
You must be signed in to change notification settings - Fork 19
String table sizing - rational? #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for your investigation, regarding your questions:
So I will add the same dynamic allocation logic for the string_table as used by the other stacks and containers. In addition and regarding #102 a possibility to get the current "usage" of the different container (most likely capacity and current size). In this go, I will finish your work on #107 to compile with C++17. Thank you kindly for your input, and if any questions remain, feel free to ask. |
I'm working on an ink-based game. I have a function in the game that creates a character sheet, listing the player's posessions. There are about 30 possible items (global boolean variables) and the text is generated dynamically depending on whether the player has each item.
This funcion, when more than ~10 items are present, crashes inkcpp due to the string table filling up.
Of course I can increase the size of the string table and call it a day, but I would like to understand this problem in a bit more detail.
As a short-term solution, I'm planning to send a pull request that allows overriding the default size via a define. But if you'd rather just me set a significantly higher default size, that works too.
The ink script is proprietary, but if absolutely needed, I can spend some time creating a derived version as a proof-of-concept for this crash.
The text was updated successfully, but these errors were encountered: