In this video for the Windows Performance Toolkit, you will be shown the xperf command line utility that is part of the Windows Performance Toolkit. You will learn how to use xperf to obtain the timer tick resolution rate and see if the application changed the default OS tick rate from 15.6ms. After using xperf to get Timer Tick Rate you will be shown how to use the Windows Performance Analyzer to inspect the call path to the Timer Tick Rate change. You will dive into the source code of the Bouncing Sprite application where you will see how a few simple line changes of code can dramatically decrease the power consumption of the entire application.
- [Voiceover] Here's the source code…for the bouncing spread application.…This is the intialize method where everything is set.…I'm going to look at these two lines.…This.isfixtimestep…and graphics.synchronizedverticalretrace.…By changing these two lines, the issue with the high HPS…will be fixed.…It's as simple as that.…Before I make changes to the code,…I'm going to reference the documentation to get a better…understanding of these APIs.…The IsFixedTimeStep, by default, is set to true.…And if you go to the documentation for the XNA…is FixedTimeStep property.…
It says that in a FixedTimeStep game, it calls update…when a target elapse time has passed.…In games, it is common to have a game clock…and after x amount of time has passed in the game,…a single update and present a new frame to the stream.…Now, I'm going to look at that GameTick that you kept seeing…in the Windows performance analyzer call stacks.…What it says Game Tick method is that it updates the game's…clock and calls update and draw.…This matches up with what was shown earlier…
With these diagnostic tools and some efficient programming, you can reduce your app's power consumption while improving its response times. In this course, Thomas Pantels introduces a handful of tools used to measure and optimize power consumption. You will see demos on how to use the Intel Power Gadget, Windows Performance Toolkit, TypePerf, and SoC Watch, along with some simple coding tips for making any Windows app more energy efficient.
- Collecting and analyzing power data with Intel Power Gadget
- Implementing a rendering state machine
- Collecting and analyzing data with the Windows Performance Toolkit
- Understanding idle states, call stack walking, and thread activity
- Windows OS Timer Tick Resolution Rate change
- Optimization techniques to make your app power efficient
- Collecting, analyzing, and comparing data with Windows TypePerf and SoC Watch
Skill Level Intermediate
1. How to Use Intel Power Gadget
2. How to Use Windows Performance Toolkit
3. How to Use Windows Typeperf
4. How to Use Intel Energy Profiler SoC Watch
Next steps2m 27s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.