viti95 / FastDoom

Doom port for DOS, optimized to be as fast as possible!
512 stars 33 forks source link

Small sprintf optimization in the ShowFPS section #146

Closed RamonUnch closed 1 year ago

RamonUnch commented 1 year ago

The speedup is minor because it is only called once a second. I got a 0.05% speed increase when showing fps. I do not see why f needed to be declared static, also I reduced the buffer size from 32 to 16 because the maximul length should actually be 12 including the NULL terminator : `429496729.5\0', I rounded up to 16, not sure if I should do that.