Commit 07f8fe6
committed
stop loading quest template to reset items
`reset_items` it called on start up, and it loads the quest template
file to initialize the items to whatever is in there. Except there is
no item section in the classic module's template file, and the module
system is dead weight at this point, so let's stop loading this thing
for no reason.
Benchmarks:
hyperfine './zelda -test modules/classic/classic_1st.qst 0 119'
Baseline (classic_1st.qst):
Time (mean ± σ): 4.239 s ± 0.145 s [User: 0.926 s, System: 0.410 s]
Range (min … max): 4.133 s … 4.638 s 10 runs
Don't load quest template (classic_1st.qst):
Time (mean ± σ): 3.852 s ± 0.094 s [User: 0.710 s, System: 0.403 s]
Range (min … max): 3.776 s … 4.107 s 10 runs1 parent 8dab8c8 commit 07f8fe6
2 files changed
+6
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | | - | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1152 | 1156 | | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | 1157 | | |
1162 | 1158 | | |
1163 | 1159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
832 | 833 | | |
833 | 834 | | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | 835 | | |
847 | 836 | | |
848 | 837 | | |
| |||
0 commit comments