Saber style lag on 1 font

Hello,

Need some assistance on this weird issue, I have 1 new font that lags, the audio seems fine just appears to be the actual blade style that is very laggy and slow. I’ve copy and pasted another style front another font, and it does the same, whereas every other font is fine, this font was however a converted xeno font, but all the names are correct so i don’t see how that would cause this and the audio seems fine to the ear. i did a serial monitor scane to see the speed it reads that font, and it shows as: Time to read blocks: Average speed: 1223.35 kb/s, 13.87 simultaneous audio streams. Which i think is fine and i also tried a different sd card and that seems to be laggy too… would anyone have any suggestions please?

I did already format my sd card using windows, but i’ll try it using that formatting tool that i have seen on other posts and see what it does. I did add a few extra’s to this font, but made sure they were 16pcm and 44100 Hz mono wav

If you experience lag or slow response you need to run ‘sdtest’ in Serial Monitor on the font causing lag. Even if SD is labeled as high performance you should run sdtest to be sure.

- First, remove DISABLE_DIAGNOSTIC_COMMANDS define from your config.

- Upload new config (you may temporarily need to remove some presets if exceeding FLASH memory)

- With saber connected go to Arduino > Tools > Serial Monitor

- Type ‘sdtest’

- If you do not have 1200kbps read speed and 12 simulatenous audio streams you will want to replace your SD with a better performing card.

You can also improve SD performance via formatting and file structure, also be sure to ALWAYS ‘Eject’ the SD card anytime it’s mounted to your computer to prevent file corruption.

hello, this is what i get on the laggy font: Time to read blocks: Average speed: 1223.35 kb/s, 13.87 simultaneous audio streams

Time to read blocks: Average speed: 1223.35 kb/s, 13.87 simultaneous audio streams

i dont feel this is an issue with reading any data from the sd card, something else is at play here

So you changed the blade style for the preset with this font to a blade style which appears fine in other presets, and the style which was fine elsewhere lags when placed alongside this one font?

If the same blade style is still on another preset, it doesn’t lag on that one but does on the problem preset?

Possibly silly question, but I want to make sure that you did cd [font folder] before running sdtest (or used p and n to navigate to it)?

If so, then can you please post the entire output of the command? The output for testing each file and the final chart?

Yes I used the same style from the font above, and it stilled lagged, but the one I copied it from was absolutely fine so it’s very strange.

I switched to the font by using the aux button like normal, I could see it change on the serial monitor, and it said the right one was selected so assume that was okay. I’ll run it again and get the full output now

Can you surround the serial monitor with triple (you might need quadruple, even) backticks ` (so it’s formatted?

Like this

It looks like there’s some outliers for open time…

Not quite.

There’s some info here:

@DrExtinct

You’re just missing a newline/pressing ENTER in between the content and the backticks.
I.e. they need to be on a separate line.

Oh… know what, you’re probably using the “new” Discourse editor. You need to use the </> button with the text selected, or switch the A to M in the top left. (switch to markdown mode)

Booster off.
Battery voltage: 0.05
Playing common/medit.wav
ED
Playing common/vmend.wav
D
Playing common/vmbegin.wav
E
Playing common/mnum/mnum1.wav

Playing common/mnum/mnum2.wav

Playing common/mnum/mnum3.wav
E
Playing common/mnum/mnum4.wav

Playing common/mnum/mnum5.wav
E
Playing common/mnum/mnum6.wav
D
Playing common/mnum/mnum7.wav
E
Playing common/mnum/mnum8.wav

Playing common/mnum/mnum9.wav
E
Playing common/mnum/mnum10.wav

Playing common/mnum/mnum11.wav

Playing common/mnum/mnum12.wav

Playing common/mnum/mnum13.wav

Playing common/mnum/mnum14.wav
E
Playing common/mnum/mnum15.wav
E
Playing common/mnum/mnum16.wav
E
Playing common/mnum/mnum17.wav
E
Playing common/mnum/mnum18.wav

Playing common/mnum/mnum19.wav
E
Playing common/mnum/mnum20.wav

Playing SL Maul/lowbatt/lowbatt.wav
E
Playing common/mclick.wav

Playing SL Maul/ccchange.wav

Playing SL Maul/ccend.wav

Playing SL Maul/ccbegin.wav

Playing SL Maul/color/color.wav

Playing SL Maul/endlb/endlb.wav
EDD
Playing SL Maul/lb/lb.wav
EDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDD
Playing SL Maul/endmelt/endmelt.wav
EDD
Playing SL Maul/melt/melt.wav
DDDDDDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDD
Playing SL Maul/bgnmelt/bgnmelt.wav
EDD
Playing SL Maul/enddrag/enddrag1.wav

Playing SL Maul/enddrag/enddrag2.wav

Playing SL Maul/enddrag/enddrag3.wav

Playing SL Maul/enddrag/enddrag4.wav

Playing SL Maul/enddrag/enddrag5.wav

Playing SL Maul/enddrag/enddrag6.wav

Playing SL Maul/enddrag/enddrag7.wav

Playing SL Maul/enddrag/enddrag8.wav

Playing SL Maul/drag/drag.wav
DDDDDDDDDDDDDDDDD
Playing SL Maul/bgndrag/bgndrag1.wav
DD
Playing SL Maul/bgndrag/bgndrag2.wav
EDD
Playing SL Maul/bgndrag/bgndrag3.wav
EDDDDD
Playing SL Maul/swingh/swingh01.wav
DDDDDDDDDDDDDDDDDDDDDDDDDD
Playing SL Maul/swingh/swingh02.wav
EDDDEDDDDDDDDDDDDDDDDDDDDD
Playing SL Maul/swingh/swingh03.wav
EDDDDDDDDDDDDDDDDDDDDDDDDD
Playing SL Maul/swingl/swingl01.wav
EDDDDDDDDDDDDDDDDDDDDDDDDD
Playing SL Maul/swingl/swingl02.wav
EDDDDDDDDDDDDDDDDDDDDDDDDD
Playing SL Maul/swingl/swingl03.wav
EDEDDDDDDDEDDDEDDDEDDDDDED
Playing SL Maul/quote/quote1.wav
EDDD
Playing SL Maul/quote/quote2.wav
EDDDD
Playing SL Maul/quote/quote3.wav
EDDDD
Playing SL Maul/quote/quote4.wav
ED
Playing SL Maul/quote/quote5.wav
EDD
Playing SL Maul/quote/quote6.wav
EDDD
Playing SL Maul/swng/swng01.wav

Playing SL Maul/swng/swng02.wav

Playing SL Maul/swng/swng03.wav

Playing SL Maul/swng/swng04.wav

Playing SL Maul/swng/swng05.wav

Playing SL Maul/swng/swng06.wav

Playing SL Maul/swng/swng07.wav

Playing SL Maul/swng/swng08.wav

Playing SL Maul/swng/swng09.wav
D
Playing SL Maul/swng/swng10.wav

Playing SL Maul/swng/swng11.wav
E
Playing SL Maul/swng/swng12.wav

Playing SL Maul/swng/swng13.wav

Playing SL Maul/swng/swng14.wav

Playing SL Maul/swng/swng15.wav

Playing SL Maul/swng/swng16.wav

Playing SL Maul/lock/lock.wav
DDDDEDDDDDDDDDDDEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDDDDD
Playing SL Maul/out/out01.wav
ED
Playing SL Maul/out/out02.wav
ED
Playing SL Maul/out/out03.wav
ED
Playing SL Maul/out/out04.wav
ED
Playing SL Maul/out/out05.wav
ED
Playing SL Maul/out/out06.wav
ED
Playing SL Maul/in/in.wav

Playing SL Maul/clsh/clsh01.wav
E
Playing SL Maul/clsh/clsh02.wav
EDD
Playing SL Maul/clsh/clsh03.wav
ED
Playing SL Maul/clsh/clsh04.wav
ED
Playing SL Maul/clsh/clsh05.wav
E
Playing SL Maul/clsh/clsh06.wav
ED
Playing SL Maul/clsh/clsh07.wav
ED
Playing SL Maul/clsh/clsh08.wav
E
Playing SL Maul/clsh/clsh09.wav
ED
Playing SL Maul/clsh/clsh10.wav
E
Playing SL Maul/clsh/clsh11.wav
E
Playing SL Maul/clsh/clsh12.wav
E
Playing SL Maul/clsh/clsh13.wav
E
Playing SL Maul/clsh/clsh14.wav
E
Playing SL Maul/clsh/clsh15.wav
E
Playing SL Maul/clsh/clsh16.wav
E
Playing SL Maul/blst/blst01.wav
EDD
Playing SL Maul/blst/blst02.wav
EDDD
Playing SL Maul/blst/blst03.wav
EDDDD
Playing SL Maul/blst/blst04.wav
EDD
Playing SL Maul/blst/blst05.wav
EDDD
Playing SL Maul/blst/blst06.wav
EDDD
Playing SL Maul/endlock/endlock1.wav
DDD
Playing SL Maul/endlock/endlock2.wav
EDDD
Playing SL Maul/endlock/endlock3.wav
EDDDD
Playing SL Maul/bgnlock/bgnlock1.wav
EDD
Playing SL Maul/bgnlock/bgnlock2.wav
ED
Playing SL Maul/bgnlock/bgnlock3.wav
EDDDDDDDDD
Playing SL Maul/bgnlock/bgnlock4.wav
EDD
Playing SL Maul/spin/spin01.wav
DD
Playing SL Maul/spin/spin02.wav
E
Playing SL Maul/spin/spin03.wav
E
Playing SL Maul/spin/spin04.wav
ED
Playing SL Maul/spin/spin05.wav
E
Playing SL Maul/spin/spin06.wav
E
Playing SL Maul/stab/stab01.wav
EDD
Playing SL Maul/stab/stab02.wav
EDDD
Playing SL Maul/stab/stab03.wav
EDD
Playing SL Maul/stab/stab04.wav
EDDD
Playing SL Maul/force/force1.wav
EDD
Playing SL Maul/force/force2.wav
E
Playing SL Maul/hum.wav
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
Playing common/bladeout.wav
D
Playing common/bladein.wav

Playing SL Maul/font.wav
ED
Time to open files: Average time: 2769.26 us
                                                                                                    
                                      :                                                            .
                                      ::                                                           :
                                      ::                                                           :
                                      ::                                                           :
                              .       ::       .                                                   :
                              :.      ::       :                                                   :
                              ::      ::       :                                                   :
                             .::      ::       :                                                   :
                             :::     .::      ::                                                   :
                 :.:        .::: . . :::      ::    .  ..    .                                     :
x100us              1                   2                   3                   4                   5
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
Time to read blocks: Average speed: 1223.40 kb/s, 13.87 simultaneous audio streams.
                                                                                                    
        :                                                                                           
        :                                                                                           
        :                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::...       ...                                                                              
x100us              1                   2                   3                   4                   5
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
Battery voltage: 0.24
Unmounting SD Card.
Battery voltage: 0.05

Alright, so yeah, there’s some substantial outliers (relative to both your data and what would be expected) in open time, even though your average read (and even just read in general, it seems pretty consistent, which is good) is perfectly speedy.

If you’ve already re-formatted the SD card and re-copied stuff over, and it’s with just a particular font, it probably is something weird with that font, and not the SD card (of course, if you have another SD card, you could try it to rule that out completely).

I don’t know if there’s a way to get more specific information about which files took longer to open. I consider the possibility it’s a file formatting issue/oddity, but that’s only if sdtest times the whole WAV open process. If not and that’s just the filesystem open time, then we’re back to it probably being the SD card or the filesystem (for which a reformat would help, but it’d be odd that you reformatted and the exact same font has the issue).

Anything else I’d say would be speculation, so I won’t and I’ll wait to see what Fredrik says, if he stops by.

For completeness, what does sdtest look like on the font that was with the blade style you said wasn’t laggy came from. (that you moved to this font and noticed lag).

I did try a different sd card and the performance was pretty much the same, so must be the font.

This is the sdtest from the one that has no lag, the styles are exactly the same as each other

Booster off.
Playing common/medit.wav
DD
Playing common/vmend.wav
E
Playing common/vmbegin.wav
E
Playing common/mnum/mnum1.wav

Playing common/mnum/mnum2.wav

Playing common/mnum/mnum3.wav
E
Playing common/mnum/mnum4.wav

Playing common/mnum/mnum5.wav
E
Playing common/mnum/mnum6.wav
D
Playing common/mnum/mnum7.wav
E
Playing common/mnum/mnum8.wav

Playing common/mnum/mnum9.wav
E
Playing common/mnum/mnum10.wav

Playing common/mnum/mnum11.wav

Playing common/mnum/mnum12.wav

Playing common/mnum/mnum13.wav

Playing common/mnum/mnum14.wav
E
Playing common/mnum/mnum15.wav
E
Playing common/mnum/mnum16.wav
E
Playing common/mnum/mnum17.wav
E
Playing common/mnum/mnum18.wav

Playing common/mnum/mnum19.wav
E
Playing common/mnum/mnum20.wav

Playing Taron Malicos/lowbatt/lowbatt.wav
D
Playing common/mclick.wav

Playing Taron Malicos/ccchange.wav

Playing Taron Malicos/ccend.wav

Playing Taron Malicos/ccbegin.wav

Playing Taron Malicos/color/color.wav

Playing Taron Malicos/enddrag/enddrag1.wav

Playing Taron Malicos/enddrag/enddrag2.wav

Playing Taron Malicos/enddrag/enddrag3.wav

Playing Taron Malicos/enddrag/enddrag4.wav

Playing Taron Malicos/drag/drag.wav
EDDDDDEDDDEDDDD
Playing Taron Malicos/bgndrag/bgndrag1.wav

Playing Taron Malicos/bgndrag/bgndrag2.wav

Playing Taron Malicos/bgndrag/bgndrag3.wav

Playing Taron Malicos/bgndrag/bgndrag4.wav

Playing Taron Malicos/swingh/swingh01.wav
DDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh02.wav
EDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh03.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh04.wav
DDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh05.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh06.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh07.wav
EDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingh/swingh08.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl01.wav
EDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl02.wav
EDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl03.wav
EDDEDDDDDEDEDDDDDDDEDE
Playing Taron Malicos/swingl/swingl04.wav
DDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl05.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl06.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl07.wav
EDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/swingl/swingl08.wav
EDDDDDDDDDDDDDDDDDDDDD
Playing Taron Malicos/quote/quote1.wav
DED
Playing Taron Malicos/quote/quote2.wav
EDD
Playing Taron Malicos/quote/quote3.wav
E
Playing Taron Malicos/quote/quote4.wav
ED
Playing Taron Malicos/quote/quote5.wav
ED
Playing Taron Malicos/quote/quote6.wav
ED
Playing Taron Malicos/quote/quote7.wav
EDD
Playing Taron Malicos/quote/quote8.wav
ED
Playing Taron Malicos/quote/quote9.wav
EED
Playing Taron Malicos/quote/quote10.wav
DDDD
Playing Taron Malicos/quote/quote11.wav
ED
Playing Taron Malicos/quote/quote12.wav
EDDDDDD
Playing Taron Malicos/quote/quote13.wav
EDDD
Playing Taron Malicos/quote/quote14.wav
EDDD
Playing Taron Malicos/quote/quote15.wav
EDDDD
Playing Taron Malicos/quote/quote16.wav
ED
Playing Taron Malicos/swng/swng01.wav
D
Playing Taron Malicos/swng/swng02.wav
D
Playing Taron Malicos/swng/swng03.wav
E
Playing Taron Malicos/swng/swng04.wav
E
Playing Taron Malicos/swng/swng05.wav
E
Playing Taron Malicos/swng/swng06.wav
E
Playing Taron Malicos/swng/swng07.wav
E
Playing Taron Malicos/swng/swng08.wav
E
Playing Taron Malicos/swng/swng09.wav
E
Playing Taron Malicos/swng/swng10.wav
E
Playing Taron Malicos/swng/swng11.wav
E
Playing Taron Malicos/swng/swng12.wav
D
Playing Taron Malicos/swng/swng13.wav
E
Playing Taron Malicos/swng/swng14.wav
E
Playing Taron Malicos/swng/swng15.wav
E
Playing Taron Malicos/swng/swng16.wav
E
Playing Taron Malicos/lock/lock01.wav
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEDDEDDE
Playing Taron Malicos/out/out01.wav
E
Playing Taron Malicos/out/out02.wav
E
Playing Taron Malicos/out/out03.wav
E
Playing Taron Malicos/out/out04.wav
E
Playing Taron Malicos/out/out05.wav
E
Playing Taron Malicos/out/out06.wav
ED
Playing Taron Malicos/in/in01.wav

Playing Taron Malicos/in/in02.wav

Playing Taron Malicos/clsh/clsh01.wav
D
Playing Taron Malicos/clsh/clsh02.wav
E
Playing Taron Malicos/clsh/clsh03.wav
E
Playing Taron Malicos/clsh/clsh04.wav
E
Playing Taron Malicos/clsh/clsh05.wav
E
Playing Taron Malicos/clsh/clsh06.wav
E
Playing Taron Malicos/clsh/clsh07.wav
E
Playing Taron Malicos/clsh/clsh08.wav
E
Playing Taron Malicos/clsh/clsh09.wav
E
Playing Taron Malicos/clsh/clsh10.wav
E
Playing Taron Malicos/clsh/clsh11.wav
E
Playing Taron Malicos/clsh/clsh12.wav
E
Playing Taron Malicos/clsh/clsh13.wav
E
Playing Taron Malicos/clsh/clsh14.wav
E
Playing Taron Malicos/clsh/clsh15.wav
E
Playing Taron Malicos/clsh/clsh16.wav
E
Playing Taron Malicos/blst/blst01.wav
E
Playing Taron Malicos/blst/blst02.wav
E
Playing Taron Malicos/blst/blst03.wav
E
Playing Taron Malicos/blst/blst04.wav
E
Playing Taron Malicos/endlock/endlock1.wav
E
Playing Taron Malicos/endlock/endlock2.wav

Playing Taron Malicos/endlock/endlock3.wav
E
Playing Taron Malicos/endlock/endlock4.wav
E
Playing Taron Malicos/bgnlock/bgnlock1.wav
E
Playing Taron Malicos/bgnlock/bgnlock2.wav
E
Playing Taron Malicos/bgnlock/bgnlock3.wav
E
Playing Taron Malicos/bgnlock/bgnlock4.wav
ED
Playing Taron Malicos/force/force1.wav
DD
Playing Taron Malicos/force/force2.wav
EEDDDDD
Playing Taron Malicos/hum/hum01.wav
DDDDDDDDDDDDDDDDDDDDDDD
Playing common/bladeout.wav
D
Playing common/bladein.wav

Playing Taron Malicos/font/font.wav
D
Time to open files: Average time: 3290.49 us
                                                                                                    
                                                       :                                            
                                                       :                                            
                                                      .:                                            
                                                      ::                                           :
                                                      ::                                           :
                                                      ::                                           :
                                         .  .         ::                                           :
                                         :  :         ::                                           :
                                         : :: ..      ::                                           :
                                 : ..    : ::.::   :: ::      .:.                                  :
x100us              1                   2                   3                   4                   5
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
Time to read blocks: Average speed: 1225.25 kb/s, 13.89 simultaneous audio streams.
                                                                                                    
        :                                                                                           
        :                                                                                           
        :                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::                                                                                           
       ::...       ...                                                                              
x100us              1                   2                   3                   4                   5
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
Battery voltage: 0.04
Unmounting SD Card.
1 Like

Does this font have an “out” effect?
(I don’t see one listed here.)

Yes it did, i resolved this now, i ran the files through a tool that converted all to the correct format, and it started working so 1 of the files must be formatted incorrectly

if you can provide us with the name of the conversion tool that might help someone else as well.

It is called ffmpeg

1 Like