public final class LoopFrameSkipping extends Object implements Loop
Speed is always the same, but frames may be skipped during rendering in order to not be late on update.
If update takes more time than expected frame rate, rendering is performed at a minimum rate.
Constructor and Description |
---|
LoopFrameSkipping()
Create loop.
|
Modifier and Type | Method and Description |
---|---|
void |
start(Screen screen,
Frame frame)
Start the loop.
|
void |
stop()
Stop the loop.
|
Copyright © 2017 Byron 3D Games Studio. All rights reserved.