Skip navigation

Implement the render state machine

Implement the render state machine: Windows Power Tools: Optimizing Code
Implement the render state machine: Windows Power Tools: Optimizing Code

Now time for you to implement that Rendering State Machine by making some simple code changes to the source code of the Jigsaw Puzzle app. The optimization code changes include adding that state flag m_stateChanged as a member variable to the GameState class as well as some accessor and setter methods. Most of the code changes are properly setting the value of m_stateChanged to each input event handler i.e. OnPointerMoved. This is all done so you can add a simple if statement that dictates when to call Update, Draw and Present in order to change what is shown on screen.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 58m
Duration
8,811
Views
Show More Show Less

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.