mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
limit story context to avoid out of mem
This commit is contained in:
@@ -64,6 +64,9 @@ class Story:
|
||||
def add_to_story(self, action, story_block):
|
||||
self.actions.append(action)
|
||||
self.results.append(story_block)
|
||||
if (len(str(self)) > 3900): # (Fix some mem errors. From RTech, max story of 3900 characters for GTX 2080 ti 11GB
|
||||
self.actions.pop(1)
|
||||
self.results.pop(1)
|
||||
|
||||
def latest_result(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user