Basic standard graphics

bearophile bearophileHUGS at lycos.com
Fri Nov 12 16:51:48 PST 2010


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


More information about the Digitalmars-d mailing list