dos33fsprogs/pt3_player/OPTIMIZATION.txt

56 lines
1.8 KiB
Plaintext
Raw Normal View History

Code Optimization
~~~~~~~~~~~~~~~~~
The original working code is about 4k (not counting the pt3 file)
and has an overhead of roughly 20% when playing a song interrupt-driven
at 50Hz.
I'm keeping some stats here as I try to optimize the size and speed.
2019-05-20 02:11:56 +00:00
Song: "Summer of Rain" SR.PT3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lz4 compressed
pt3 size: raw size: ym5 size: pt3.lz4:
3871 137015 7637 1793
2019-05-20 02:11:56 +00:00
Size=pt3lib_end - note_a
2019-05-20 02:11:56 +00:00
Decoder Type size ZP use raw decode total CPU overhead
-------------------------------------------------------------
Original 3407 22B 1F.22 31s 171s 18.1%
VolTableGen 3302 22B 20.0E 32s 171s 18.7%
SizeOpts 3262 22B 20.0A 32s 171s 18.7%
MoreSizeOpt 3203 22B 1F.1D 31s 171s 18.1%
Qkumba#1 2937 ?? 1D.18 29s 171s 16.9%
Qkumba#2 2879 ?? 1C.18 28s 171s 16.3%
Qkumba#3+vmw 2816 ?? 1C.22 28s 171s 16.3%
Fixes,zero init 2776 ?? 1C.10 28s 171s 16.3%
Qkumba-SuperSMC 2739 ?? 1B.15 27s 171s 15.8%
MoveNoteToZP 2650 ?? 1A.23 26s 171s 15.2%
MinorFixes 2418 + 143 1A.1F 26s 171s 15.2%
FixVibrato 2423 + 143 1A.1F 26s 171s 15.2%
2019-09-10 05:37:15 +00:00
GetNoteSMC 2448 + 143 1A.16 26s 171s 15.2%
NoteTableGen 2554 + 143 1A.1C 26s 171s 15.2%
InlineGetNote 2537 + 143 19.27 25s 171s 14.6%
2019-05-20 02:11:56 +00:00
Times: Validated
2019-05-20 04:53:01 +00:00
BH.PT3: 10.0B 16 1:33 93 17.2%
CH.PT3: 1D.12 29 2:49 169 17.2%
2019-05-20 04:53:01 +00:00
CR.PT3: 0F.25 15 1:30 90 16.7% Yes
DF.PT3: 19.1C 25 2:27 147 17.0%
2019-05-20 04:09:38 +00:00
EA.PT3: 1E.13 30 2:53 173 17.3% Yes
F4.PT3: 18.1D 24 2:16 136 17.6%
FC.PT3: 20.24 32 3:12 192 16.7%
FR.PT3: 0B.0A 11 1:01 61 18.0%
HI.PT3: 11.19 17 1:34 94 18.0%
I2.PT3: 1E.0C 30 2:59 179 16.8%
2019-05-20 04:53:01 +00:00
IT.PT3: 16.19 22 2:11 131 16.8% Yes
MB.PT3: 14.08 20 1:59 119 16.8%
ND.PT3: 14.1C 20 1:52 112 17.9%
OS.PT3: 13.24 19 1:48 108 17.6%
RI.PT3: 0F.03 15 1:26 86 17.4%
SD.PT3: 11.16 17 1:40 100 17.0%
SR.PT3: 1F.22 31 2:51 171 18.1%
VC.PT3: 1B.20 27 2:40 160 16.9%