Ignore:
Timestamp:
Aug 15, 2010, 4:29:11 PM (10 years ago)
Author:
sam
Message:

Implement a better timing mechanism for fixed framerate. Accuracy is
sub-millisecond but can be improved if we get rid of SDL timers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debugfps.cpp

    r112 r116  
    6666    char buf[1024];
    6767    sprintf(buf, "%3.2f ms (%3.2f fps) -- max %3.2f ms -- #%i",
    68             mean, 1000.0f / mean, max, data->frame);
     68            1000.0f * mean, 1.0f / mean, 1000.0f * max, data->frame);
    6969    data->font->Print(10, 10, buf);
    7070    data->font->Print(11, 10, buf);
Note: See TracChangeset for help on using the changeset viewer.