diff options
Diffstat (limited to 'en/devices/graphics/arch-gameloops.html')
-rw-r--r-- | en/devices/graphics/arch-gameloops.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/en/devices/graphics/arch-gameloops.html b/en/devices/graphics/arch-gameloops.html index 574c5a0c..272a779d 100644 --- a/en/devices/graphics/arch-gameloops.html +++ b/en/devices/graphics/arch-gameloops.html @@ -25,7 +25,7 @@ <p>A very popular way to implement a game loop looks like this:</p> -<pre> +<pre class="devsite-click-to-copy"> while (playing) { advance state by one frame render the new frame @@ -130,7 +130,7 @@ game state can be updated quickly.</p> simple game that did nothing but move a block every 100ms, you could have a dedicated thread that just did this:</p> -<pre> +<pre class="devsite-click-to-copy"> run() { Thread.sleep(100); synchronized (mLock) { |