viti95 / FastDoom

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

Wrong fps display if 0XX after decimal point. #145

Closed RamonUnch closed 1 year ago

RamonUnch commented 1 year ago

ie: 1710 gametics * 35 / 136 rticks = 440.073 fps FastDoom displays 440.73 fps which is wrong.

Just replace the FPS: %u.%u by FPS: %u.%.3u and the output will be zero padded after the dot and everything will be fine.

viti95 commented 1 year ago

Yeah it was not working properly. Will do a bugfix release due to this. Thanks for discovering this issue!!