Reduce memory

* Reduced memory footprint by excluding DollCloth and DollOutfit instances from directly participating in rollback unless reachable through renpy scope
This commit is contained in:
LoafyLemon 2023-03-24 17:07:36 +00:00
parent 8d1a8b4ffa
commit 48874a546a
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
init python: init python:
class DollCloth(DollMethods): class DollCloth(DollMethods, SlottedNoRollback):
layer_types = { layer_types = {
"mask": "-1", "mask": "-1",
"skin": 10, "skin": 10,

View File

@ -1,5 +1,5 @@
init python: init python:
class DollOutfit(DollMethods): class DollOutfit(DollMethods, SlottedNoRollback):
default_schedule = {"day": False, "night": False, "cloudy": False, "rainy": False, "snowy": False} default_schedule = {"day": False, "night": False, "cloudy": False, "rainy": False, "snowy": False}
def __init__(self, group, unlocked=False, name="", desc="", price=0, temp=False, schedule={}, hidden=False, addons=[]): def __init__(self, group, unlocked=False, name="", desc="", price=0, temp=False, schedule={}, hidden=False, addons=[]):