Ignore:
Timestamp:
Jan 15, 2013, 11:41:52 PM (8 years ago)
Author:
sam
Message:

core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/xbox/xboxapp.cpp

    r2183 r2222  
    6262}
    6363
    64 void XboxApp::Run()
     64void XboxApp::Tick()
    6565{
    66     while (!Ticker::Finished())
    67     {
    68         /* Tick the renderer, show the frame and clamp to desired framerate. */
    69         Ticker::TickDraw();
     66    /* Tick the renderer, show the frame and clamp to desired framerate. */
     67    Ticker::TickDraw();
    7068
    7169#if defined _XBOX
    72         g_d3ddevice->Present(NULL, NULL, NULL, NULL);
     70    g_d3ddevice->Present(NULL, NULL, NULL, NULL);
    7371#endif
    74     }
    7572}
    7673
Note: See TracChangeset for help on using the changeset viewer.