Java Game Development #3 – Constructing our Game Loop

Complete Java Game Development Course now available at my website

In this video we learn how to construct the main heart of any game, the key piece of code that keeps the engine running. That is the game loop. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

Have you ever wanted to create games? Have you ever gotten fed up with it being to difficult? Well now is the time to thank me and possibly subscribe because you have just found the channel for you! Game Maker Tutorials, Java Game Programming, Unity3D Tutorials, Batch, C++ and much much more! This is the channel for you, the one stop shop for an exploration of your hidden talent as a game developer. Unleash your potential and go wild with imagination when you finally figure out how to make any game you want!

Visit CodingMadeSimple for more exclusive tutorials and get the help you need to succeed as your very own indie game developer!

Follow me on twitter for exclusive content and interaction with me!

Game Maker Studio: Programming
Game Maker Studio: Tutorial
Java Programming
Game Programming
Game Tutorial
Programming Tutorial






19 responses to “Java Game Development #3 – Constructing our Game Loop”

  1. pk6 Labs Avatar

    it does do good seriously man come on

  2. pk6 Labs Avatar

    Mine is 45 to 46 Million but my tick rate goes:
    59 Ticks
    60 Ticks
    60 Ticks
    60 Ticks
    and more 60 Ticks

  3. Stevie Boulton Avatar

    i had 56million fps best game 2017 🙂

  4. Charlés Gheluwe Avatar

    How do you autocomplete the (){ }, what shortcut is it in Eclipse? Thanks!

  5. Muhammad Quanit Avatar

    11130390 ticks , Fps 11130390 (it starts from this counting)
    i got this result..can anyone tell me what am i doing wrong??

  6. Abo Jack Avatar

    do i also need such a game loop for a simlpe 2d game ? i want to test it first on my computer and implement it later to unity/gamemaker etc.

  7. TRESCHK Avatar

    Frames around 20720490…

  8. Voignar Avatar

    Why is it so hard to understand game loooopssss :(((

  9. Brkn Dev Avatar

    Around 55- 66 million Updates :O

  10. AdamJMC Gross Avatar

    my fps is 47 million

  11. Novaski Avatar

    idk wtf i am doing, why do you start with so much complicated things, im pretty sure the Jframe thing was way enough and then we would have build our way up… now idk 99% of what i did and why ;>

  12. RichyK1 Avatar

    Awesome tutorial

  13. Efe Senel Avatar

    58 million fps with i56600 and gtx1070.

  14. MinerScotty Avatar

    I was getting 14238337 FPS and 60 – 61 updates

  15. jotnova Avatar

    4 years later I'm getting 85 million fps.

  16. ROSA Avatar

    IT'S ON STACKOVERFLOW.COM , @RealTutsGML – Please commit to your git..

    While running this loop, (the thread that holds the game), i got "150 CPU" on my macbookair, and it's got really hot.

    * I test on other mac – it was the same.
    * I test it on Ubuntu, CPU was low.
    * I test it on Windows 7 CPU was low.

    I put to sleep in the thread:

    catch (Exception e)

    And it's got lower, CPU at 18.

    Please, if someone have other idea, PLEASE HELP!
    My java version is :

    java version "1.8.0_73"
    Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

    Thank you all.

Leave a Reply

Your email address will not be published. Required fields are marked *