Adam D. Ruppe: > SDL_WM_SetCaption(toStringz("FPS: " ~ > to!string(frameNumber / (totalTime / 1000.0))), null);
std.conv.text() may be better there (untested): SDL_WM_SetCaption(toStringz(text("FPS: ", frameNumber / (totalTime / 1000.0))), null); > Anyway, it generally works but cut the FPS in half on my computer (linux > using Blackbox window manager). Updating the window is a little > slow compared to writing to stdout. I see. So let's drop this idea then. Thank you for your work. Bye, bearophile