28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7 ■ The Foundation of Game Play Loop: The <strong>Java</strong>FX Pulse System and the Game Processing Architecture<br />

Figure 7-16. Replace throw new UnsupportedOperationException(); with a comment, creating an empty method<br />

Now, let’s again use the Profile ➤ Profile Project (InvinciBagel) work process to see if anything new has<br />

appeared in the Live Results and Threads tabs in NetBeans. Click the Live Results icon, shown at the left of Figure 7-17,<br />

and start the Live Results Profiler in a tab. Note that the GamePlayLoop object is created, using , and that an<br />

AnimationTimer is started, using the invincibagel.GamePlayLoop.start() entry in the Profiler output.<br />

Figure 7-17. Use a Profile ➤ Profile Project menu sequence to start the Profiler, and look at GamePlayLoop memory use<br />

158

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!